{{-- Shared appointment table. Expects $appointments (collection or paginator); optional $compact. --}}
@forelse ($appointments as $a) @empty @endforelse
Reference Visitor Host Purpose Schedule Status Action
{{ $a->reference }}
{{ $a->type_label }}
{{ $a->visitor->name }}
{{ $a->visitor->phone }}@if($a->visitor->company) ยท {{ $a->visitor->company }}@endif
{{ $a->host->name }} {{ $a->purpose }} {{ $a->scheduled_at->format('d M Y') }}
{{ $a->scheduled_at->format('h:i A') }}
@if (auth()->user()->hasRole('admin', 'security') && $a->canCheckIn()) Check in @elseif (auth()->user()->hasRole('admin', 'security') && $a->canCheckOut())
@csrf
@elseif (auth()->user()->can('decide-walkin', $a)) Review @endif
No appointments found.