@vite(['resources/css/app.css', 'resources/js/app.js']) @auth @php $u = auth()->user(); $portalLabel = match (true) { $u->role === 'superadmin' => 'Super Admin', $u->role === 'hospital_admin' => 'Hospital', $u->role === 'aim4wellness_admin' => 'Aim4Wellness Ops', $u->role === 'doctor' && $u->doctor_type === 'independent' => 'Clinician', $u->role === 'doctor' && $u->doctor_type === 'hospital' => 'Hospital doctor', $u->role === 'charge_nurse' => 'Charge nurse', $u->role === 'billing_clerk' => 'Billing', $u->role === 'lab_technician' => 'Laboratory', $u->role === 'radiographer' => 'Radiology', $u->role === 'patient' && $u->hospital_id === null => 'My care', default => 'Workspace', }; $initial = strtoupper(\Illuminate\Support\Str::substr($u->name ?? '?', 0, 1)); @endphp @endauth
@auth @if(auth()->user()->hospital_id && in_array(auth()->user()->role, ['doctor', 'nurse', 'charge_nurse', 'hospital_admin', 'receptionist', 'pharmacist', 'lab_technician', 'radiographer'], true)) @endif @endauth {{-- Mobile overlay --}}

@yield('page_title')

@auth @endauth
@if (session('status'))
{{ session('status') }}
@endif @yield('content')