From 01ae8538d8ce18d9347e9f5660bb9ea2297a0e34 Mon Sep 17 00:00:00 2001 From: Sergey Panarin Date: Tue, 13 Aug 2024 08:25:10 +0200 Subject: [PATCH] =?UTF-8?q?=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/WorkerController.php | 10 ++++++---- resources/views/employers/bd.blade.php | 1 + 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/WorkerController.php b/app/Http/Controllers/WorkerController.php index e7b9412..7431e0e 100644 --- a/app/Http/Controllers/WorkerController.php +++ b/app/Http/Controllers/WorkerController.php @@ -95,10 +95,12 @@ class WorkerController extends Controller }); } - $Job_title = Job_title::query()-> - where('is_remove', '=', '0')-> - where('is_bd', '=' , '1')-> - get(); + $Job_title = Job_title::query() + ->where('is_remove', '=', '0') + ->where('is_bd', '=' , '1') + ->orderByDesc('sort') + ->get() + ; if ($request->get('sort')) { $sort = $request->get('sort'); diff --git a/resources/views/employers/bd.blade.php b/resources/views/employers/bd.blade.php index f45606b..d763d57 100644 --- a/resources/views/employers/bd.blade.php +++ b/resources/views/employers/bd.blade.php @@ -20,6 +20,7 @@ $('.search-reset-button').click(function(){ var wrap = $(this).closest('.cabinet__filters'); wrap.find('[name="search"]').val(''); + wrap.find('button').click(); }); }); -- 1.7.10.4