Files
ladill-queue/resources/views/components/counter-status.blade.php
T
isaaccladandCursor bc6bf0a07c
Deploy Ladill Queue / deploy (push) Successful in 28s
Faster voice announcements, Care/Frontdesk API, and console UI polish.
Poll displays every 1.2s with client-side TTS ack; expose service API for sibling apps; redesign tickets, counters, and staff console.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 21:51:13 +00:00

17 lines
652 B
PHP

@props(['status'])
@php
$styles = [
'available' => 'bg-emerald-50 text-emerald-800 ring-emerald-200',
'busy' => 'bg-amber-50 text-amber-800 ring-amber-200',
'offline' => 'bg-slate-100 text-slate-600 ring-slate-200',
'paused' => 'bg-violet-50 text-violet-800 ring-violet-200',
];
$label = config('qms.counter_statuses.'.$status, ucfirst($status));
$class = $styles[$status] ?? 'bg-slate-100 text-slate-700 ring-slate-200';
@endphp
<span {{ $attributes->merge(['class' => "inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium ring-1 ring-inset {$class}"]) }}>
{{ $label }}
</span>