Commit 7fea6c8d4d5c49c26ae13bb75acfad37d4b5f821
1 parent
ef4723c2f4
Exists in
master
and in
1 other branch
Коммит работодателя в админке - название корпорации
Showing 2 changed files with 4 additions and 1 deletions Side-by-side Diff
app/Http/Controllers/Admin/EmployersController.php
... | ... | @@ -28,7 +28,7 @@ class EmployersController extends Controller |
28 | 28 | $user->update($request->all()); |
29 | 29 | } |
30 | 30 | |
31 | - $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.*']) | |
31 | + $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.*']) | |
32 | 32 | ->join('employers as emp','emp.user_id','users.id') |
33 | 33 | ->where('users.is_worker', '0')->Realuser(); //->Notadmin(); |
34 | 34 | $all_employer = $users->count(); |
resources/views/admin/employer/index.blade.php
... | ... | @@ -174,6 +174,9 @@ |
174 | 174 | <td class="px-4 py-3 text-xs"> |
175 | 175 | <div class="flex items-center text-sm"> |
176 | 176 | <div> |
177 | + @if (isset($user->name_company)) | |
178 | + <p class="font-semibold">{{$user->name_company}}</p> | |
179 | + @endif | |
177 | 180 | <p class="font-semibold">{{$user->name}}</p> |
178 | 181 | <p class="font-semibold">{{ empty($user->employers->email) ? $user->email : $user->employers->email }}</p> |
179 | 182 | <p class="text-xs text-gray-600 dark:text-gray-400"> |