Commit f36e2a63120b6906e39fd17ed8264387e338fc4a
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