Commit 028431ad708ca280a95dea1b5a3413e0542f0e82

Authored by Андрей Ларионов
1 parent f3f96e3932

Активные пункты

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

app/Http/Controllers/EmployerController.php
... ... @@ -115,8 +115,8 @@ class EmployerController extends Controller
115 115 public function cabinet_vacancie() {
116 116 $id = Auth()->user()->id;
117 117  
118   - $categories = Category::query()->get();
119   - $Positions = Positions::query()->get();
  118 + $categories = Category::query()->active()->get();
  119 + $Positions = Positions::query()->active()->get();
120 120 if ($Positions->count()) {
121 121 $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
122 122 } else {
... ... @@ -171,7 +171,7 @@ class EmployerController extends Controller
171 171 public function vacancy_edit(Ad_employer $ad_employer) {
172 172 $id = Auth()->user()->id;
173 173  
174   - $Positions = Positions::query()->get();
  174 + $Positions = Category::query()->active()->get();
175 175 if ($Positions->count()) {
176 176 $jobs = Job_title::query()->OrderBy('name')->where('position_id', $Positions[0]->id)->get();
177 177 } else {