From 415bebd6cdda18267f88887f3471bd271fb5c0c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Mon, 22 Apr 2024 13:29:09 +0700 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=20=D1=81=20=D0=B8=D0=B7=D0=B1=D1?= =?UTF-8?q?=80=D0=B0=D0=BD=D0=BD=D1=8B=D0=BC=D0=B8=20=D0=BB=D1=8E=D0=B4=D1=8C?= =?UTF-8?q?=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 2 ++ app/Http/Controllers/MainController.php | 5 ++--- resources/views/employers/favorite.blade.php | 10 +++++++--- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 7f875ac..6553f5a 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -563,6 +563,8 @@ class EmployerController extends Controller } $Workers = $Workers->get(); + + return view('employers.favorite', compact('Workers')); } diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index e4638a1..ce89503 100644 --- a/app/Http/Controllers/MainController.php +++ b/app/Http/Controllers/MainController.php @@ -108,10 +108,9 @@ class MainController extends Controller if ($request->has('code_record')) { if ($request->has('delete')) { + $code = $request->get('code_record'); $atomic_era = Like_vacancy::select('id')-> - where('code_record', '=', $request-> - get('code_record'))->first(); - + where('code_record', '=', $code)->toSql(); DB::table('like_vacancy')->where('code_record', $request->get('code_record'))->delete(); } else { diff --git a/resources/views/employers/favorite.blade.php b/resources/views/employers/favorite.blade.php index ac958dc..9e9a750 100644 --- a/resources/views/employers/favorite.blade.php +++ b/resources/views/employers/favorite.blade.php @@ -46,7 +46,7 @@ }); }); - @include('js.favorite-vacancy-45') + @include('js.favorite-worker') @endsection @section('content') @@ -104,7 +104,7 @@ @foreach ($Workers as $it)
-
-- 1.7.10.4