diff --git a/app/Http/Controllers/Admin/JobTitlesController.php b/app/Http/Controllers/Admin/JobTitlesController.php index eb62bdb..501da9b 100644 --- a/app/Http/Controllers/Admin/JobTitlesController.php +++ b/app/Http/Controllers/Admin/JobTitlesController.php @@ -34,7 +34,7 @@ class JobTitlesController extends Controller orderBy('name')-> active()-> get();*/ - $category = Category::query()->get(); + $category = Category::query()->active()->get(); return view('admin.job_titles.add', compact('category')); } @@ -70,7 +70,7 @@ class JobTitlesController extends Controller */ public function edit(Job_title $job_title) { - $category = Category::query()->get(); + $category = Category::query()->active()->get(); return view('admin.job_titles.edit', compact('job_title', 'category')); }