@php $cards = [ [ 'label' => 'Visitors Today', 'value' => number_format($stats['visitors_today']), 'meta' => number_format($stats['contractors_today']).' contractor'.($stats['contractors_today'] === 1 ? '' : 's'), 'href' => route('frontdesk.visits.index'), ], ['label' => 'Currently Inside', 'value' => number_format($stats['currently_inside']), 'href' => route('frontdesk.visits.index', ['status' => 'checked_in'])], ['label' => 'Expected Arrivals', 'value' => number_format($stats['expected_arrivals']), 'href' => route('frontdesk.visits.index', ['status' => 'expected'])], ['label' => 'Waiting', 'value' => number_format($stats['waiting']), 'href' => route('frontdesk.visits.index', ['status' => 'waiting'])], ['label' => 'Overdue', 'value' => number_format($stats['overdue']), 'href' => route('frontdesk.visits.index', ['status' => 'overdue'])], ['label' => 'Pending Approval', 'value' => number_format($stats['pending_approvals']), 'href' => route('frontdesk.visits.index', ['status' => 'waiting'])], ['label' => 'Checked Out', 'value' => number_format($stats['checked_out_today']), 'href' => route('frontdesk.visits.index', ['status' => 'checked_out'])], ['label' => 'Deliveries', 'value' => number_format($stats['deliveries_today']), 'href' => route('frontdesk.visits.index')], ]; @endphp
{{-- Mobile: org name with inline action icons --}}

{{ $organization->name }}

{{-- Desktop --}}
@foreach ($cards as $card)

{{ $card['label'] }}

{{ $card['value'] }}

@if (! empty($card['meta']))

{{ $card['meta'] }}

@endif
@endforeach

Currently inside

Security view
@forelse ($currentVisitors as $visit) {{ strtoupper(substr($visit->visitor->full_name, 0, 1)) }}

{{ $visit->visitor->full_name }}

Host: {{ $visit->host?->name ?? '—' }} · {{ $visit->checked_in_at?->diffForHumans() }}

@empty

No visitors currently inside.

@endforelse

Expected today

Calendar
@forelse ($expectedVisitors as $visit)

{{ $visit->visitor->full_name }}

{{ $visit->scheduled_at?->format('g:i A') ?? 'TBD' }} · {{ $visit->host?->name }} · {{ str_replace('_', ' ', $visit->status) }}

@empty

No expected arrivals today.

@endforelse
@if ($pendingApprovals->isNotEmpty())

Pending approval

@foreach ($pendingApprovals as $visit)

{{ $visit->visitor->full_name }}

{{ ucfirst(str_replace('_', ' ', $visit->visitor_type)) }} · {{ $visit->host?->name }}

@endforeach
@endif