Deploy Ladill Care / deploy (push) Successful in 1m42s
Stops cramming ticket status, destination, and patient name onto one line across Patient, Pharmacy, Lab, and specialty queues. Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
1.3 KiB
PHP
31 lines
1.3 KiB
PHP
@php
|
|
$status = $ticketStatus ?? null;
|
|
$number = $ticketNumber ?? null;
|
|
$destination = $destination ?? null;
|
|
$staffDisplayName = $staffDisplayName ?? null;
|
|
$showAssignment = ($showAssignment ?? true) && ($destination || $staffDisplayName);
|
|
@endphp
|
|
@if ($number)
|
|
<div class="min-w-0">
|
|
<div class="flex flex-wrap items-center gap-2">
|
|
<span class="inline-flex h-7 min-w-[2.75rem] items-center justify-center rounded-md bg-sky-100 px-2 font-mono text-xs font-bold tracking-wide text-sky-800">{{ $number }}</span>
|
|
@if ($status)
|
|
<span @class([
|
|
'rounded-full px-2 py-0.5 text-[10px] font-semibold uppercase tracking-wide',
|
|
'bg-amber-100 text-amber-800' => $status === 'waiting',
|
|
'bg-indigo-100 text-indigo-800' => $status === 'called',
|
|
'bg-emerald-100 text-emerald-800' => $status === 'serving',
|
|
'bg-slate-100 text-slate-600' => ! in_array($status, ['waiting', 'called', 'serving'], true),
|
|
])>{{ $status }}</span>
|
|
@endif
|
|
</div>
|
|
@if ($showAssignment)
|
|
<p class="mt-1 truncate text-xs text-slate-500">
|
|
@if ($destination){{ $destination }}@endif
|
|
@if ($destination && $staffDisplayName)<span class="text-slate-300"> · </span>@endif
|
|
@if ($staffDisplayName){{ $staffDisplayName }}@endif
|
|
</p>
|
|
@endif
|
|
</div>
|
|
@endif
|