← {{ $counter->name }}

Staff console

{{ $counter->branch?->name }}

@csrf
@csrf
@if ($currentTicket)

Current customer

{{ $currentTicket->ticket_number }}

{{ $currentTicket->serviceQueue?->name }}

{{ $currentTicket->customer_name ?: 'Walk-in customer' }}

@foreach ([ 'recall' => ['Recall', 'btn-secondary'], 'start' => ['Start serving', 'btn-primary'], 'hold' => ['Hold', 'btn-secondary'], 'skip' => ['Skip', 'btn-secondary'], 'complete' => ['Complete', 'btn-primary'], 'no_show' => ['No show', 'btn-secondary'], ] as $action => [$label, $btnClass])
@csrf
@endforeach
@if ($allQueues->count() > 1)
@csrf
@endif
@else

No active customer

Call the next waiting ticket from a queue below.

@endif
@foreach ($queues as $queue)

{{ $queue->name }}

{{ count($waitingByQueue[$queue->id] ?? []) }} waiting

@csrf
    @forelse ($waitingByQueue[$queue->id] ?? [] as $ticket)
  • {{ $ticket->ticket_number }} {{ $ticket->customer_name ?? 'Walk-in' }}
  • @empty
  • Queue is empty
  • @endforelse
@endforeach