diff --git a/app/Http/Controllers/Admin/EmployersController.php b/app/Http/Controllers/Admin/EmployersController.php index 43095e7..06da6d1 100644 --- a/app/Http/Controllers/Admin/EmployersController.php +++ b/app/Http/Controllers/Admin/EmployersController.php @@ -28,7 +28,7 @@ class EmployersController extends Controller $user->update($request->all()); } - $users = User::with('employers')->select(['users.*','users.id as usr_id', 'emp.id as emp_id', 'emp.code as code_id', 'emp.logo as emp_logo', 'emp.*']) + $users = User::with('employers')->select(['users.*','users.id as usr_id', 'emp.id as emp_id', 'emp.code as code_id', 'emp.logo as emp_logo', 'emp.name_company as name_company', 'emp.*']) ->join('employers as emp','emp.user_id','users.id') ->where('users.is_worker', '0')->Realuser(); //->Notadmin(); $all_employer = $users->count(); diff --git a/resources/views/admin/employer/index.blade.php b/resources/views/admin/employer/index.blade.php index 99b9715..703ddae 100644 --- a/resources/views/admin/employer/index.blade.php +++ b/resources/views/admin/employer/index.blade.php @@ -174,6 +174,9 @@
{{$user->name_company}}
+ @endif{{$user->name}}
{{ empty($user->employers->email) ? $user->email : $user->employers->email }}