From 410b65e5b092de931804177a29238c9f5f6693af 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 14:04:25 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B8=D0=B4=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1?= =?UTF-8?q?=8C=20=D0=B2=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD=D0=BA=D0=B5=20=D0=B8?= =?UTF-8?q?=20=D0=B2=20=D1=80=D0=B5=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B4=D0=BE=D0=BB=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D0?= =?UTF-8?q?=B5=D0=B9?= 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 1752e35..3566552 100644 --- a/app/Providers/MyServiceProvider.php +++ b/app/Providers/MyServiceProvider.php @@ -112,7 +112,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