From 6c589246f7b05b811286c1baf279c75764abae26 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: Fri, 31 May 2024 13:52:21 +0700 Subject: [PATCH] =?UTF-8?q?=D0=9A=D0=BE=D0=BC=D0=BC=D0=B8=D1=82=20=D0=BF=D0=BE?= =?UTF-8?q?=20=D1=81=D0=BF=D0=B8=D1=81=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 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(); -- 1.7.10.4