@extends('layouts.head_office_app') @section('title', 'Assign Setting to Organisation') @section('sidebar') @include('layouts.company.sidebar') @endsection @section('content')
Location Users

Add Location @include('layouts.error') @if (isset($array) && count($array) > 0) @foreach ($array as $key => $arr) @endforeach
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 @include('head_office.my_organisation.add_location_user', [ 'key' => $key, 'location' => $arr, 'groups' => $groups, 'locations' => $locations, 'location_ids' => $location_ids, 'group_ids' => $group_ids, ])
@else

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) @foreach ($suspended_users as $hou) @endforeach
Email Comment Name Status Actions
{{ $hou->user->name }}

{{ $hou->is_blocked ? 'blocked' : 'live' }}

@else

You do not have any blocked users

@endif
@include('/Job_modal_headoffice')
@csrf
@include('head_office.my_organisation.add_location_user', [ 'key' => null, 'location' => null, 'groups' => $groups, 'locations' => $locations, 'location_ids' => null, 'group_ids' => null, ]) @endsection @section('styles') @endsection @section('scripts') @endsection