Commit 51c4e3944dddb1c3be2f5bd45e50eeeef3be951b

Authored by Андрей Ларионов
1 parent 18e40504a1
Exists in master

Update main controller

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

app/Http/Controllers/MainController.php
... ... @@ -153,7 +153,8 @@ class MainController extends Controller
153 153 public function vacancies(Request $request) {
154 154 //должности
155 155 $Job_title = Job_title::query()->where('is_remove', '=', '0')->
156   - where('is_bd', '=', '0')->orderByDesc('sort')->orderBy('name')->get();
  156 + where('is_bd', '=', '0')->orderByDesc('sort')->
  157 + orderBy('name')->get();
157 158  
158 159 $categories = Category::query()->selectRaw('count(ad_employers.id) as cnt, categories.*')
159 160 ->selectRaw('min(ad_employers.salary) as min_salary, max(ad_employers.salary) as max_salary')
... ... @@ -267,7 +268,9 @@ class MainController extends Controller
267 268 }
268 269 }
269 270  
270   - $Job_title = Job_title::query()->where('is_bd', '=', '0')->OrderBy('name')->get();
  271 + $Job_title = Job_title::query()->where('is_remove', '=', '0')->
  272 + where('is_bd', '=', '0')->orderByDesc('sort')->
  273 + orderBy('name')->get();
271 274  
272 275 $Query_count = $Query->count();
273 276