{{-- Single EMS call card on the ambulance dispatch board. Stacked layout: ticket badge, patient info, then an action footer โ€” narrow columns never push buttons over the text. --}} @php $appointment = $visit->appointment; $patient = $visit->patient; $openUrl = route('care.specialty.workspace', ['module' => 'ambulance', 'visit' => $visit]); $ticketNumber = $appointment?->queue_ticket_number; $reason = $appointment?->reason; $nextStage = $column['next_stage'] ?? null; $nextLabel = $column['next_label'] ?? null; $isCompleted = ($column['key'] ?? '') === 'completed'; $showAdvance = $canAdvanceStage && $nextStage && $nextLabel; @endphp
($column['key'] ?? '') === 'check_in', 'border-indigo-200' => ($column['key'] ?? '') === 'dispatch', 'border-sky-200' => ($column['key'] ?? '') === 'on_scene', 'border-violet-200' => ($column['key'] ?? '') === 'transport', 'border-emerald-200' => ($column['key'] ?? '') === 'handover', 'border-slate-100 opacity-80' => $isCompleted, ]) >
@if ($ticketNumber) {{ $ticketNumber }} @else @endif ($column['key'] ?? '') === 'check_in', 'bg-indigo-400' => ($column['key'] ?? '') === 'dispatch', 'bg-sky-400' => ($column['key'] ?? '') === 'on_scene', 'bg-violet-400' => ($column['key'] ?? '') === 'transport', 'bg-emerald-400' => ($column['key'] ?? '') === 'handover', 'bg-slate-300' => $isCompleted, ])>

{{ $patient?->fullName() ?? 'Patient' }}

{{ $patient?->patient_number ?? 'โ€”' }} @if ($reason) ยท {{ \Illuminate\Support\Str::limit($reason, 48) }} @endif

@if ($appointment?->practitioner?->name)

{{ $appointment->practitioner->name }}

@endif
@if ($showAdvance)
@csrf
@endif Open