Commit 79b9c13abfc4a2a5cfb24ad48cd1c86f9d8bb9bc

Authored by Андрей Ларионов
Exists in master

Merge branch 'master' of http://gitlab.nologostudio.ru/alarionov/rekamore-su

Showing 2 changed files 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