Commit 01ae8538d8ce18d9347e9f5660bb9ea2297a0e34

Authored by Сергей П
1 parent 2b8dd10cb3
Exists in master

правки

Showing 2 changed files with 7 additions and 4 deletions Side-by-side Diff

app/Http/Controllers/WorkerController.php
... ... @@ -95,10 +95,12 @@ class WorkerController extends Controller
95 95 });
96 96 }
97 97  
98   - $Job_title = Job_title::query()->
99   - where('is_remove', '=', '0')->
100   - where('is_bd', '=' , '1')->
101   - get();
  98 + $Job_title = Job_title::query()
  99 + ->where('is_remove', '=', '0')
  100 + ->where('is_bd', '=' , '1')
  101 + ->orderByDesc('sort')
  102 + ->get()
  103 + ;
102 104  
103 105 if ($request->get('sort')) {
104 106 $sort = $request->get('sort');
resources/views/employers/bd.blade.php
... ... @@ -20,6 +20,7 @@
20 20 $('.search-reset-button').click(function(){
21 21 var wrap = $(this).closest('.cabinet__filters');
22 22 wrap.find('[name="search"]').val('');
  23 + wrap.find('button').click();
23 24 });
24 25 });
25 26