From 51c4e3944dddb1c3be2f5bd45e50eeeef3be951b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Wed, 5 Jun 2024 11:29:50 +0300 Subject: [PATCH] Update main controller --- app/Http/Controllers/MainController.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/MainController.php b/app/Http/Controllers/MainController.php index 5798f9e..407df13 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') @@ -267,7 +268,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(); -- 1.7.10.4