Stack queue card hierarchy: ticket, patient, then room/doctor.
Deploy Ladill Care / deploy (push) Successful in 1m42s
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>
This commit is contained in:
@@ -3,25 +3,28 @@
|
||||
$number = $ticketNumber ?? null;
|
||||
$destination = $destination ?? null;
|
||||
$staffDisplayName = $staffDisplayName ?? null;
|
||||
$showAssignment = ($showAssignment ?? true) && ($destination || $staffDisplayName);
|
||||
@endphp
|
||||
@if ($number)
|
||||
<span class="mr-2 inline-flex flex-wrap items-center gap-1.5">
|
||||
<span class="inline-flex h-7 min-w-[2.5rem] items-center justify-center rounded-md bg-sky-100 px-1.5 font-mono text-xs font-bold 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
|
||||
@if ($destination || $staffDisplayName)
|
||||
<span class="text-[11px] font-medium text-slate-500">
|
||||
<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) · @endif
|
||||
@if ($destination && $staffDisplayName)<span class="text-slate-300"> · </span>@endif
|
||||
@if ($staffDisplayName){{ $staffDisplayName }}@endif
|
||||
</span>
|
||||
</p>
|
||||
@endif
|
||||
</span>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
Reference in New Issue
Block a user