Commit 73330ab088cd9bd0e3bca02a6a7e77d3b1a49dd0
1 parent
2c676e6ce0
Exists in
master
and in
1 other branch
Активные вакансии
Showing 1 changed file with 2 additions and 2 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 |