diff --git a/app/Http/Controllers/EmployerController.php b/app/Http/Controllers/EmployerController.php index 2051a83..8af629b 100644 --- a/app/Http/Controllers/EmployerController.php +++ b/app/Http/Controllers/EmployerController.php @@ -115,8 +115,8 @@ class EmployerController extends Controller public function cabinet_vacancie() { $id = Auth()->user()->id; - $categories = Category::query()->get(); - $Positions = Positions::query()->get(); + $categories = Category::query()->active()->get(); + $Positions = Positions::query()->active()->get(); if ($Positions->count()) { $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get(); } else { @@ -171,7 +171,7 @@ class EmployerController extends Controller public function vacancy_edit(Ad_employer $ad_employer) { $id = Auth()->user()->id; - $Positions = Positions::query()->get(); + $Positions = Category::query()->active()->get(); if ($Positions->count()) { $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get(); } else {