@if ($preview ?? false)
Badge preview — Print badge
@endif
@if (($template['show_photo'] ?? true) && $photoUrl) Visitor photo @endif
{{ $visit->organization->name ?? 'Visitor' }}
{{ $visit->visitor->full_name }}
@if (($template['show_company'] ?? true) && $visit->visitor->company){{ $visit->visitor->company }}
@endif @if ($template['show_host'] ?? true)Host: {{ $visit->host?->name ?? '—' }}
@endif @if ($template['show_type'] ?? true)Type: {{ ucfirst(str_replace('_', ' ', $visit->visitor_type)) }}
@endif Check-in: {{ $visit->checked_in_at?->format('g:i A') }}
{{ $visit->badge_code }}
Expires {{ $visit->badge_expires_at?->format('g:i A') ?? 'end of day' }}
@if (($template['show_qr'] ?? true) && $qrSvg)
{!! $qrSvg !!}
@endif @if (! empty($template['footer_text'])) @endif