From ca41500a28505566cf2fd02a35e8b53725082627 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: Thu, 28 Mar 2024 16:52:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82123?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Ad_jobsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Ad_jobsController.php b/app/Http/Controllers/Ad_jobsController.php index b912c26..23d498c 100644 --- a/app/Http/Controllers/Ad_jobsController.php +++ b/app/Http/Controllers/Ad_jobsController.php @@ -43,7 +43,7 @@ class Ad_jobsController extends Controller public function add_job_in_vac(Request $request, Ad_employer $ad_employer) { $id = Auth()->user()->id; - $Positions = Category::query()->get(); + $Positions = Category::query()->active()->get(); if ($Positions->count()) { $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get(); } else { @@ -72,7 +72,7 @@ class Ad_jobsController extends Controller else $job_title_id = ''; - $Positions = Category::query()->get(); + $Positions = Category::query()->active()->get(); if ($Positions->count()) { $jobs123 = Job_title::query()->OrderBy('name')->where('position_id', $ad_job->job_title->position_id )->get(); } else { -- 1.7.10.4