@php $cards = [ ['label' => 'Visitors Today', 'value' => number_format($stats['visitors_today']), 'href' => route('frontdesk.visits.index')], ['label' => 'Currently Inside', 'value' => number_format($stats['currently_inside']), 'href' => route('frontdesk.visits.index', ['status' => 'checked_in'])], ['label' => 'Staff On Site', 'value' => number_format($stats['staff_on_site']), 'href' => route('frontdesk.employees.index')], ['label' => 'Staff Stepped Out', 'value' => number_format($stats['staff_stepped_out']), 'href' => route('frontdesk.employees.index')], ['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'])], ]; @endphp

{{ $organization->name }}

@include('frontdesk.partials.reception-quick-actions')
@include('partials.upgrade-banner')
@foreach ($cards as $card)

{{ $card['label'] }}

{{ $card['value'] }}

@endforeach

Currently inside

@include('partials.mobile-icon-link', [ 'href' => route('frontdesk.security.index'), 'label' => 'Security view', 'icon' => 'shield', ])
@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

@include('partials.mobile-icon-link', [ 'href' => route('frontdesk.visits.calendar'), 'label' => 'Calendar', 'icon' => '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 ($staffSteppedOut->isNotEmpty())

Staff stepped out

@include('partials.mobile-icon-link', [ 'href' => route('frontdesk.employees.index'), 'label' => 'Employees', 'icon' => 'arrow', ])
@foreach ($staffSteppedOut as $presence)
{{ strtoupper(substr($presence->employee->full_name, 0, 1)) }}

{{ $presence->employee->full_name }}

{{ $presence->destination ?? 'Stepped out' }} · {{ $presence->last_event_at?->diffForHumans() }}

@endforeach
@endif @if ($pendingApprovals->isNotEmpty())

Pending approval

@foreach ($pendingApprovals as $visit)

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

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

@endforeach
@endif