From d9c5c71b6147d3e0dda962738f8b2851e6f95c7a 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, 4 Mar 2024 11:11:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 18 +- resources/views/layout/frontend.blade.php | 233 ++------------------ resources/views/modals/register.blade.php | 170 ++++++++++++++ resources/views/modals/reset_password.blade.php | 19 ++ .../views/modals/send_message_noaut.blade.php | 10 + .../views/modals/thank_you_send_employer.blade.php | 7 + .../views/modals/thank_you_send_manager.blade.php | 8 + 7 files changed, 244 insertions(+), 221 deletions(-) create mode 100644 resources/views/modals/register.blade.php create mode 100644 resources/views/modals/reset_password.blade.php create mode 100644 resources/views/modals/send_message_noaut.blade.php create mode 100644 resources/views/modals/thank_you_send_employer.blade.php create mode 100644 resources/views/modals/thank_you_send_manager.blade.php diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index a0a237b..f9e5797 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -333,12 +333,16 @@ class EmployerController extends Controller //Избранные люди public function favorites(Request $request) { - $items = RusDate::count_item_fav(); - $it = $_COOKIE['favorite_worker']; - $it = str_replace('"', "", $it); - $it = str_replace('[', "", $it); - $it = str_replace(']', "", $it); - $Arr = explode(",", $it); + if (isset($_COOKIE['favorite_worker'])) { + $items = RusDate::count_item_fav(); + $it = $_COOKIE['favorite_worker']; + $it = str_replace('"', "", $it); + $it = str_replace('[', "", $it); + $it = str_replace(']', "", $it); + $Arr = explode(",", $it); + } else { + $Arr = Array(); + } $Workers = Worker::query(); $Workers = $Workers->whereIn('id', $Arr); @@ -382,7 +386,7 @@ class EmployerController extends Controller // Данные $users = $users->Baseuser()-> - orderBy(Worker::select('position_work')->whereColumn('workers.user_id', 'users.id'))-> + orderBy(Worker::select('position_work')->whereColumn('Workers.user_id', 'users.id'))-> paginate(5); return view('employers.bd', compact('users')); diff --git a/resources/views/layout/frontend.blade.php b/resources/views/layout/frontend.blade.php index fa4e9c2..172c298 100644 --- a/resources/views/layout/frontend.blade.php +++ b/resources/views/layout/frontend.blade.php @@ -224,224 +224,28 @@