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 @@