From 47843107321382cce786fa91aeb8418db06d2894 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 14:44:20 +0700 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3-=D0=BE=D1=88=D0=B8=D0=B1=D0=BA?= =?UTF-8?q?=D0=B0=20=D1=8D=D1=82=D0=BE=20=D1=81=20=D1=81=D0=BE=D0=BE=D0=B1=D1?= =?UTF-8?q?=89=D0=B5=D0=BD=D0=B8=D1=8F=D0=BC=D0=B8=20=D0=B8=20=D0=B8=D0=B7=D0?= =?UTF-8?q?=B1=D1=80=D0=B0=D0=BD=D0=BD=D1=8B=D0=BC=D0=B8=20=D0=B4=D0=B0=D0=BD?= =?UTF-8?q?=D0=BD=D1=8B=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 16 +- 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, 243 insertions(+), 220 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..a120b65 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); 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 @@