{{-- @dd($location->organization_setting_assignment->organization_setting->location_tab_color) --}} @php $location = Auth::guard('location')->user() ?? (Auth::guard('remote_location')->user() ?? $location); $forms = $location->group_forms(); $user = Auth::guard('web')->user() ?? Auth::guard('user')->user(); $userMain = Auth::guard('web')->user() ?? Auth::guard('user')->user(); $positions = [ 1 => 'Accuracy Checking Technician (ACT)', 2 => 'Pharmacy Apprentice', 3 => 'Counter Assistant', 4 => 'Dispenser', 5 => 'Driver', 6 => 'Pharmacist', 7 => 'Pre-registration Pharmacist', 8 => 'Pharmacy Technician', 9 => 'Pharmacy Assistant', ]; @endphp Welcome, {{ $location->trading_name }} @livewire('location-task-notifications', ['location' => $location]) @if (isset($user)) @endif {{-- --}} @if (isset($user)) {{ $user->name }} @php $headOfficePosition = $user->getSelectedHeadOfficePositionAttribute(); @endphp {{ empty($headOfficePosition) ? optional($user->user_job())->job_details->job : $headOfficePosition }} @php $headOfficePosition = $user->getSelectedHeadOfficePositionAttribute(); $regNo = $user->user_job()?->reg_no; $regBody = $user->user_job()?->reg_body?->name; @endphp @php $subtypeIds = $user->user_job() ? json_decode($user->user_job()->subtypes) : []; if (is_array($subtypeIds) && count($subtypeIds) > 0) { $subtypes = App\Models\jobsubtypes::whereIn('id', $subtypeIds)->get(); } else { $subtypes = collect(); } @endphp @if(!empty($headOfficePosition) || (!empty($regNo))) {{-- @csrf --}} @if(!empty($headOfficePosition)) {{ $user->user_job()->job_details->job ?? 'No User Type Assigned' }} @endif @if(!empty($regNo)) {{ $regNo }} @endif @if(!empty($regBody)) {{ $regBody }} @endif @if(count($subtypes) > 0) @foreach($subtypes as $subtype) •{{ $subtype->subtype_name }} @endforeach @endif @endif @endif Mode Light {{-- Go to User Account --}} Edit my details Sign Out