From 73330ab088cd9bd0e3bca02a6a7e77d3b1a49dd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=20=D0=9B=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D0=BE=D0=BD=D0=BE=D0=B2?= Date: Thu, 28 Mar 2024 20:50:56 +0700 Subject: [PATCH] =?UTF-8?q?=D0=90=D0=BA=D1=82=D0=B8=D0=B2=D0=BD=D1=8B=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B0=D0=BA=D0=B0=D0=BD=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/JobTitlesController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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')); } -- 1.7.10.4