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