@if($authUser)
Travel Desk @yield('title', 'Dashboard')

@yield('title', 'Dashboard')

{{ now()->format('d') }} {{ now()->format('l') }}{{ now()->format('F Y') }}
@if($staffEmployee)
@if($todayAttendance?->check_in) In: {{ \Illuminate\Support\Str::of($todayAttendance->check_in)->substr(0, 5) }} @if($todayAttendance?->check_out) Out: {{ \Illuminate\Support\Str::of($todayAttendance->check_out)->substr(0, 5) }} @endif @else Not clocked in @endif @if(! $todayAttendance?->check_in)
@csrf
@elseif(! $todayAttendance?->check_out)
@csrf
@else Done @endif
@endif
@endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Every validation failure in one place. Fields still show their own inline message, but nothing can go unnoticed just because a form skipped an @error. --}} @if($errors->any())
Please fix the following:
    @foreach($errors->all() as $validationMessage)
  • {{ $validationMessage }}
  • @endforeach
@endif {{-- Every uploaded file is served from APP_URL. If it does not match the host the panel is actually reached on, uploads save fine but come back as dead links (and password reset mails point at the wrong host too). Silent otherwise, so a correct deploy never sees this. --}} @php($configuredHost = parse_url((string) config('app.url'), PHP_URL_HOST)) @if($configuredHost && $configuredHost !== request()->getHost() && auth()->user()?->hasRole('super-admin'))
APP_URL does not match this server. It is set to {{ config('app.url') }} but you are using {{ request()->getSchemeAndHttpHost() }}. Uploaded images will be linked as {{ rtrim(config('app.url'), '/') }}/storage/... and will not load. Set APP_URL={{ request()->getSchemeAndHttpHost() }} in .env, then run php artisan config:clear.
@endif @yield('content')
@if($authUser) @endif