diff --git a/app/Http/Controllers/Admin/WorkersController.php b/app/Http/Controllers/Admin/WorkersController.php index 81c9b92..b7e3527 100644 --- a/app/Http/Controllers/Admin/WorkersController.php +++ b/app/Http/Controllers/Admin/WorkersController.php @@ -26,7 +26,7 @@ class WorkersController extends Controller } $status_work = Job_title::query()->active()->orderBy('name')->get(); - $users = User::with('jobtitles')->worker()->realuser(); + $users = User::with(['jobtitles', 'workers'])->realuser(); $all_worker = $users->count(); $find_status_work = ""; diff --git a/resources/views/emails/send_already_registered.blade.php b/resources/views/emails/send_already_registered.blade.php index eb8bb1d..34766a9 100644 --- a/resources/views/emails/send_already_registered.blade.php +++ b/resources/views/emails/send_already_registered.blade.php @@ -19,12 +19,12 @@