@php($premiumDashboard = request()->routeIs('dashboard') && auth()->user()?->isAdmin())
@php($premiumWorksites = request()->routeIs('worksites.index'))
{{ $title ?? __('common.appName') }} ยท {{ __('common.appName') }}
@vite(['resources/css/app.css', 'resources/js/app.js'])
@livewireStyles
@php($user = auth()->user())
{{ __('portal.skip') }}
{{ $heading ?? '' }}
{{-- Profile menu --}}
{{ $user->initials() }}
{{ $user->name }}
{{ $user->role->label() }}
{{ $user->name }}
{{ $user->role->label() }}
{{ $slot }}
{{-- Toasts for notifications that arrive while the page is open (not while typing); a generic native notification if the tab is hidden and the user enabled it. --}}
{ const id = Date.now() + Math.random(); toasts.push({ id, t }); setTimeout(() => toasts = toasts.filter(x => x.id !== id), 6000); });
}">
@if($user->isAdmin()) @endif
@livewireScripts