@php use App\Enums\TicketPresence; use App\Enums\TicketStatus; $stats = $this->stats; $socketsOn = config('broadcasting.client.enabled'); @endphp
{{-- ------------------------------------------------------------ stats --}}
{{-- --------------------------------------------------------- toolbar --}}
@if($this->types->isNotEmpty()) @endif
@foreach(['grid' => 'grid', 'table' => 'list'] as $mode => $icon) @endforeach
@can('generateTickets', $event) @endcan @can('print', $event) Print @endcan
{{-- Live/polling indicator so operators know what they are looking at. --}}
{{-- --------------------------------------------------------- listing --}}
@if($tickets->isEmpty())
@can('generateTickets', $event) @endcan
@elseif($view === 'grid') {{-- Dense board: one cell per ticket, colour-coded by presence. --}}
@foreach($tickets as $ticket) @php $isVoid = $ticket->status === TicketStatus::Void; $flash = in_array($ticket->id, $flashed, true); @endphp @endforeach
@else {{-- Table view: more detail per row. --}}
@foreach($tickets as $ticket) @php $isVoid = $ticket->status === TicketStatus::Void; @endphp @endforeach
Code Holder Type Status In / Out Last scan
{{ $ticket->code }} {{ $ticket->holder_name ?: 'Unassigned' }} @if($ticket->seat) Seat {{ $ticket->seat }} @endif @if($ticket->ticketType) {{ $ticket->ticketType->name }} @else — @endif {{ $isVoid ? 'Void' : $ticket->presence->label() }} {{ $ticket->entries_count }} / {{ $ticket->exits_count }} {{ $ticket->last_scanned_at?->diffForHumans(short: true) ?? '—' }}
@endif
{{ $tickets->links() }}
{{-- ---------------------------------------------------- detail panel --}} @if($this->selected) @php $ticket = $this->selected; @endphp

{{ $ticket->code }}

{{ $ticket->holder_name ?: 'Unassigned' }}

{{ $ticket->status === TicketStatus::Void ? 'Voided' : $ticket->presence->label() }} @if($ticket->ticketType) {{ $ticket->ticketType->name }} @endif @if($ticket->is_printed) Printed @endif
{{-- QR --}}
QR code for {{ $ticket->code }}

Ticket QR

Scanning this at the door checks the holder in and out.

Download PNG
{{-- counters --}}
@foreach([ ['Entries', $ticket->entries_count, 'text-emerald-600 dark:text-emerald-400'], ['Exits', $ticket->exits_count, 'text-amber-600 dark:text-amber-400'], ['Re-entries', $ticket->reentryCount(), 'text-sky-600 dark:text-sky-400'], ] as [$label, $value, $tone])

{{ $value }}

{{ $label }}

@endforeach
{{-- details --}}
@foreach([ 'Email' => $ticket->holder_email, 'Phone' => $ticket->holder_phone, 'Seat' => $ticket->seat, 'First entered' => $ticket->first_entered_at?->format('d M Y, H:i'), ] as $label => $value) @if($value)
{{ $label }}
{{ $value }}
@endif @endforeach
{{-- history --}}

Scan history

@forelse($ticket->scans->take(20) as $scan)

{{ $scan->describe() }}

{{ $scan->scanned_at->format('d M, H:i:s') }} @if($scan->user) · {{ $scan->user->name }} @endif @if($scan->gate) · {{ $scan->gate }} @endif

@empty

No scans recorded yet.

@endforelse
{{-- actions --}}
@can('override', $ticket) @if($ticket->status !== TicketStatus::Void)
@endif @endcan
@can('update', $ticket) @endcan @can('rotateToken', $ticket) @endcan @can('void', $ticket) @endcan
@endif {{-- ------------------------------------------------------- generate --}}
@if($this->types->isEmpty())

This event has no ticket types. Tickets will be generated without one — add types on the overview tab first if you need VIP/General tiers.

@else
@endif
@error('gen_quantity')

{{ $message }}

@enderror

Each ticket gets a unique serial and its own QR code. Numbering continues from the last batch.

{{-- ----------------------------------------------------- edit holder --}}
@error('edit_holder_name')

{{ $message }}

@enderror
@error('edit_holder_email')

{{ $message }}

@enderror