From 2fcce02ca328e3517b0e3b2dbc7e759c4f2bfb28 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: Wed, 8 May 2024 19:01:55 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BE=D0=B4=D0=B0=D1=82=D0=B5=D0?= =?UTF-8?q?=BB=D1=8F=D0=BC=20=D0=B8=20=D0=B2=D0=B0=D0=BA=D0=B0=D0=BD=D1=81=D0?= =?UTF-8?q?=B8=D1=8F=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/EmployerController.php | 5 +++-- resources/views/employers/ajax/list_vacancy.blade.php | 2 +- resources/views/employers/list_vacancy.blade.php | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 7fb1a3b..06192fb 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -741,8 +741,9 @@ class EmployerController extends Controller // Рассылка сообщений public function send_all_messages() { $id = Auth()->user()->id; - $sending = Employer::query()->where('id', '=', "$id")->first(); - if ($sending->sending_is) + $sending = Employer::query()->where('user_id', '=', "$id")->first(); + + if ($sending->sending_is) return view('employers.send_all'); else return view('employers.send_all_danger'); diff --git a/resources/views/employers/ajax/list_vacancy.blade.php b/resources/views/employers/ajax/list_vacancy.blade.php index 572bd60..cd98f0e 100644 --- a/resources/views/employers/ajax/list_vacancy.blade.php +++ b/resources/views/employers/ajax/list_vacancy.blade.php @@ -17,7 +17,7 @@ {{ $it->id }} {{ $it->name }} - {{ date('d.m.Y H:i:s', strtotime($it->created_at)) }}
/ {{ date('d.m.Y H:i:s', strtotime($it->updated_at)) }} + {{ date('d.m.Y', strtotime($it->created_at)) }}
/ {{ date('d.m.Y', strtotime($it->updated_at)) }} Добавить @if ($it->jobs->count()) diff --git a/resources/views/employers/list_vacancy.blade.php b/resources/views/employers/list_vacancy.blade.php index 4e7b3b7..1036b81 100644 --- a/resources/views/employers/list_vacancy.blade.php +++ b/resources/views/employers/list_vacancy.blade.php @@ -97,7 +97,7 @@ {{ $it->id }} {{ $it->name }} - {{ date('d.m.Y H:i:s', strtotime($it->created_at)) }}
/ {{ date('d.m.Y H:i:s', strtotime($it->updated_at)) }} + {{ date('d.m.Y', strtotime($it->created_at)) }}
/ {{ date('d.m.Y', strtotime($it->updated_at)) }} Добавить @if ($it->jobs->count()) -- 1.7.10.4