@php $stats = $this->stats; @endphp
{{-- ----------------------------------------------------------- header --}}

Door scanner

{{ $event->name }}

@foreach([ ['Inside', $stats['inside'], 'text-emerald-600 dark:text-emerald-400'], ['Out', $stats['outside'], 'text-amber-600 dark:text-amber-400'], ['Waiting', $stats['not_arrived'], 'text-slate-400'], ] as [$label, $value, $tone])

{{ number_format($value) }}

{{ $label }}

@endforeach
{{-- ------------------------------------------------------ scanner --}}
{{-- direction --}}

Scan direction

@foreach([ 'auto' => ['Auto', 'refresh', 'Decide from the ticket state'], 'in' => ['Check in', 'login', 'Force entry / re-entry'], 'out' => ['Mark out', 'logout', 'Force exit'], ] as $value => [$label, $icon, $hint]) @endforeach
{{-- result banner --}} @if($last)

{{ $last['title'] }}

@if(!$last['accepted'])

{{ $last['message'] }}

@endif @if($last['code'])

{{ $last['code'] }}

{{ $last['holder'] ?: 'Unassigned ticket' }} @if($last['seat']) · Seat {{ $last['seat'] }} @endif

@if($last['type']) {{ $last['type'] }} @endif Now: {{ $last['presence'] }} · {{ $last['entries'] }} in / {{ $last['exits'] }} out
@endif

{{ $last['at'] }}

@endif {{-- camera --}}

Camera is off

{{-- Framing guide --}}
{{-- manual --}}

A USB barcode gun also works anywhere on this page — no need to focus this box first.

{{-- -------------------------------------------------- recent feed --}}

Recent scans

@forelse($this->recent as $scan)

{{ $scan->ticket?->holder_name ?: $scan->ticket?->code ?: 'Unknown' }}

{{ $scan->describe() }}@if($scan->user) · {{ $scan->user->name }} @endif

{{ $scan->scanned_at->format('H:i:s') }}
@empty @endforelse