diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index a147692..38f21d5 100644 --- a/app/Http/Controllers/MainController.php +++ b/app/Http/Controllers/MainController.php @@ -153,7 +153,8 @@ class MainController extends Controller public function vacancies(Request $request) { //должности $Job_title = Job_title::query()->where('is_remove', '=', '0')-> - where('is_bd', '=', '0')->orderByDesc('sort')->orderBy('name')->get(); + where('is_bd', '=', '0')->orderByDesc('sort')-> + orderBy('name')->get(); $categories = Category::query()->selectRaw('count(ad_employers.id) as cnt, categories.*') ->selectRaw('min(ad_employers.salary) as min_salary, max(ad_employers.salary) as max_salary') @@ -266,7 +267,9 @@ class MainController extends Controller } } - $Job_title = Job_title::query()->where('is_bd', '=', '0')->OrderBy('name')->get(); + $Job_title = Job_title::query()->where('is_remove', '=', '0')-> + where('is_bd', '=', '0')->orderByDesc('sort')-> + orderBy('name')->get(); $Query_count = $Query->count();