Commit 6c589246f7b05b811286c1baf279c75764abae26
1 parent
ddb8f38fb5
Exists in
master
and in
1 other branch
Коммит по списку
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') |
... | ... | @@ -266,7 +267,9 @@ class MainController extends Controller |
266 | 267 | } |
267 | 268 | } |
268 | 269 | |
269 | - $Job_title = Job_title::query()->where('is_bd', '=', '0')->OrderBy('name')->get(); | |
270 | + $Job_title = Job_title::query()->where('is_remove', '=', '0')-> | |
271 | + where('is_bd', '=', '0')->orderByDesc('sort')-> | |
272 | + orderBy('name')->get(); | |
270 | 273 | |
271 | 274 | $Query_count = $Query->count(); |
272 | 275 |