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]); } );