Scheduled
{{ $a->scheduled_at->format('l, d M Y · h:i A') }}
Duration
{{ $a->duration_minutes ? $a->duration_minutes.' min' : '—' }}
Vehicle
{{ $a->vehicle_number ?: '—' }}
Badge
{{ $a->badge_number ?: '—' }}
Time inside
{{ $a->checked_in_at ? $a->checked_in_at->diffForHumans($a->checked_out_at ?? now(), true) : '—' }}
@if ($a->notes)
@endif
{{-- The OTP is shown only to the staff member who created the appointment (see 'view-otp' gate). --}}
@can('view-otp', $a)
@if ($a->isOtpActive() && $a->otp_code)
Visitor OTP (sent to {{ $a->visitor->phone }}{{ $a->visitor->email ? ' / '.$a->visitor->email : '' }})
{{ $a->otp_code }}
Copy
@push('scripts')
@endpush
@elseif ($a->isOtpActive())
This OTP was issued before OTP display was enabled. Click Resend OTP to generate one you can see here.
@elseif ($a->otp_used_at)
OTP was used at check-in and is no longer valid.
@elseif ($a->canResendOtp())
OTP has expired. Click Resend OTP to send a new one.
@endif
@endcan
OTP sent
{{ $a->otp_sent_at?->format('d M, h:i A') ?? 'Not issued' }}
OTP valid till
{{ $a->otp_expires_at?->format('d M, h:i A') ?? '—' }}
OTP used
{{ $a->otp_used_at?->format('d M, h:i A') ?? 'Not used' }}