@extends('layouts.app') @section('title', 'Front Desk Command Center') @section('content')

Reception & customer flow

Front Desk Command Center

Live check-ins, appointments, document readiness and pending collections.

@if(auth()->user()->hasPermission('queue.manage')) Issue Queue Token @endif @if(auth()->user()->hasPermission('applications.create')) + New Application @endif
Q

Customers Waiting

{{ number_format($metrics['waiting']) }}{{ $metrics['at_counter'] }} currently at counter
A

Today's Appointments

{{ number_format($metrics['appointments']) }}{{ $metrics['appointments_completed'] }} completed
D

Document Exceptions

{{ number_format($metrics['documents_pending']) }}Pending, missing or exception
AED

Pending Collections

{{ number_format((float) $metrics['payments_pending'], 2) }}Open invoice balance

Queue Progress

{{ $metrics['waiting'] + $metrics['at_counter'] > 0 ? number_format(($metrics['at_counter'] / max(1, $metrics['waiting'] + $metrics['at_counter'])) * 100) : 100 }}%Active flow at counters

Live Waiting Queue

Today’s active customer tokens in service priority order.

Open live board
@forelse($queueTokens as $token) @empty @endforelse
TokenCustomerServiceCheck-inCounterStatus
{{ $token->token_number }}{{ $token->service_date?->format('d M Y') }} {{ $token->customer?->full_name_en ?? 'Walk-in customer' }}{{ $token->customer?->primary_mobile ?? 'Customer not linked' }} {{ $token->service_type }}{{ $token->handler?->name ? 'Handled by '.$token->handler->name : 'Awaiting handler' }} {{ $token->checked_in_at?->format('h:i A') ?? '—' }}{{ $token->checked_in_at?->diffForHumans() }} {{ $token->counter?->name ?? 'Not assigned' }} {{ str($token->status)->replace('_', ' ')->title() }}
QNo customers are waiting

Issue a token when the next walk-in arrives.

Appointment Schedule

Today’s booked and checked-in visitors.

Manage
@forelse($appointments as $appointment)
{{ \Carbon\Carbon::parse($appointment->appointment_time)->format('h:i') }}{{ \Carbon\Carbon::parse($appointment->appointment_time)->format('A') }}
{{ $appointment->customer?->full_name_en ?? 'Unlinked customer' }}{{ $appointment->service?->name_en ?? 'General appointment' }}
{{ str($appointment->status)->replace('_', ' ')->title() }}
@empty
ANo appointments today

New bookings will appear here immediately.

@endforelse
@endsection