From a873cda1eb12742954e844a5c60f77a1328de37b 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 18:36:35 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=BE=D0=B1?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D1?= =?UTF-8?q?=82=D1=87=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/MainController.php | 6 +++++- resources/views/employers/list_vacancy.blade.php | 7 +++++++ resources/views/vacance-item.blade.php | 3 ++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index f425b87..eea39af 100644 --- a/app/Http/Controllers/MainController.php +++ b/app/Http/Controllers/MainController.php @@ -90,7 +90,11 @@ class MainController extends Controller $Main_Job[$name_cat][] = $it_arr; } - $employers = employers_main::query()->with('employer')->orderBy('id')->limit(8)->get(); + $employers = employers_main::query()->with('employer')-> + whereHas('employer', function ($query) { + $query->where('status_hidden', '=', '0'); + })-> + orderBy('id')->limit(8)->get(); $vacancy = Ad_jobs::query()->with('job_title')->orderBy('position_ship')->get(); return view('index', compact('news', 'Job_title', 'categories', 'employers', 'vacancy', 'Main_Job')); } diff --git a/resources/views/employers/list_vacancy.blade.php b/resources/views/employers/list_vacancy.blade.php index f51ed36..4e7b3b7 100644 --- a/resources/views/employers/list_vacancy.blade.php +++ b/resources/views/employers/list_vacancy.blade.php @@ -149,6 +149,13 @@ @endif + @if ($Employer->social_is == 1) + + + + + + @endif