From 644a3847a824bd40267eb6c41f8653a8f930c589 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: Fri, 26 Apr 2024 10:12:54 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5=D0=BD=D0?= =?UTF-8?q?=B8=D0=B5=20=D0=BF=D0=BE=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE=D1?= =?UTF-8?q?=81=D1=82=D1=8F=D0=BC=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Admin/UsersController.php | 4 ++-- app/Providers/MyServiceProvider.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/Admin/UsersController.php b/app/Http/Controllers/Admin/UsersController.php index afb923f..86c319e 100644 --- a/app/Http/Controllers/Admin/UsersController.php +++ b/app/Http/Controllers/Admin/UsersController.php @@ -67,7 +67,7 @@ class UsersController extends Controller } public function add_bd() { - $list_job_titles = Job_title::query()->active()->bdif()->orderBy('name', 'asc')->get(); + $list_job_titles = Job_title::query()->active()->where('is_bd', '=' , '2')->orderBy('name', 'asc')->get(); return view('admin.users.add', compact('list_job_titles')); } @@ -94,7 +94,7 @@ class UsersController extends Controller } public function edit_bd(User $user) { - $list_job_titles = Job_title::query()->active()->bdif()->orderBy('name', 'asc')->get(); + $list_job_titles = Job_title::query()->active()->where('is_bd', '=' , '2')->orderBy('name', 'asc')->get(); return view('admin.users.edit', compact('user', 'list_job_titles')); } diff --git a/app/Providers/MyServiceProvider.php b/app/Providers/MyServiceProvider.php index c187657..388eb37 100644 --- a/app/Providers/MyServiceProvider.php +++ b/app/Providers/MyServiceProvider.php @@ -116,7 +116,7 @@ class MyServiceProvider extends ServiceProvider $view_job_title = ['modals.register']; View::composer($view_job_title, function($view_job_title) { - $Job_titles = Job_title::query()->where('is_remove', '=', '0')->get(); + $Job_titles = Job_title::query()->where('is_remove', '=', '0')->where('is_bd', '=' , '0')->get(); $view_job_title->with(['Job_titles' => $Job_titles]); } ); -- 1.7.10.4