Location Users
Add Location
@include('layouts.error')
@if (isset($array) && count($array) > 0)
@else
| Name | Access | Action |
|---|---|---|
| {{ $head_office->findUser($key)->name }} | @php $group_ids = []; $location_ids = []; @endphp @foreach ($arr as $k => $item) @if ($item->is_location()) @php $location_ids[] = $item->location->id @endphp {{ $item->location->registered_company_name }} @else {{ $item->group->group }} @php $group_ids[] = $item->head_office_organisation_group_id @endphp @endif @endforeach |
|
You have not added any approved users
@endif
Comming soon
Add Users
@php
$logedUser = Auth::guard('web')->user();
$logged_headOfficeUser = $logedUser->getHeadOfficeUser();
$logged_profile = $logged_headOfficeUser->get_permissions();
@endphp
@php
$suspended_users = [];
foreach ($head_office->users as $hou) {
$profile = $hou->get_permissions();
// Only collect suspended users if the logged-in user has super access or matching profiles
if ($hou->is_blocked && ($logged_profile->super_access || $logged_profile->id == $profile->id)) {
$suspended_users[] = $hou;
}
}
@endphp
@if (isset($suspended_users) && count($suspended_users) > 0)
@else
| Comment | Name | Status | Actions | ||
|---|---|---|---|---|---|
| {{ $hou->user->email }} | {{ $hou->user->name }} |
{{ $hou->is_blocked ? 'blocked' : 'live' }} |
You do not have any blocked users
@endif
@include('/Job_modal_headoffice')