Commit f36e2a63120b6906e39fd17ed8264387e338fc4a

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

Коммит

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

app/Http/Controllers/Admin/JobTitlesController.php
... ... @@ -34,7 +34,7 @@ class JobTitlesController extends Controller
34 34 orderBy('name')->
35 35 active()->
36 36 get();*/
37   - $category = Category::query()->get();
  37 + $category = Category::query()->active()->get();
38 38  
39 39 return view('admin.job_titles.add', compact('category'));
40 40 }
... ... @@ -70,7 +70,7 @@ class JobTitlesController extends Controller
70 70 */
71 71 public function edit(Job_title $job_title)
72 72 {
73   - $category = Category::query()->get();
  73 + $category = Category::query()->active()->get();
74 74 return view('admin.job_titles.edit', compact('job_title', 'category'));
75 75 }
76 76  
resources/views/companies.blade.php
... ... @@ -184,8 +184,8 @@
184 184 @endif
185 185 </div>
186 186 @endforeach
187   - </div>
188   - {{ $emps->appends($_GET)->links('paginate') }}
  187 + </div>hgfhgfhgfghf
  188 + {{ $emps->appends($_GET)->onEachSide(0)->links('paginate') }}
189 189 @else
190 190 <H2>Нет данных</H2>
191 191 @endif