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())