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(); }); });