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 {