Deploy Ladill Care / deploy (push) Successful in 54s
EMS clinic workflow (dispatch → scene → transport → handover) plus completed CWC suite, with shell stages, clinical records, reports/print, demo seed, and suite tests. Co-authored-by: Cursor <cursoragent@cursor.com>
73 lines
3.8 KiB
PHP
73 lines
3.8 KiB
PHP
@php
|
|
$dispatch = $ambulanceDispatch?->payload ?? [];
|
|
$scene = $ambulanceScene?->payload ?? [];
|
|
$enRoute = $ambulanceEnRoute?->payload ?? [];
|
|
$handover = $ambulanceHandover?->payload ?? [];
|
|
@endphp
|
|
|
|
<section class="rounded-2xl border border-slate-200 bg-white p-5">
|
|
<div class="flex flex-wrap items-start justify-between gap-3">
|
|
<div>
|
|
<h3 class="text-sm font-semibold text-slate-900">Ambulance overview</h3>
|
|
<p class="mt-0.5 text-xs text-slate-500">Dispatch, scene triage, en-route care, and facility handover for this run.</p>
|
|
</div>
|
|
<div class="flex flex-wrap gap-3 text-sm">
|
|
<a href="{{ route('care.specialty.ambulance.print', $workspaceVisit) }}" target="_blank" class="font-medium text-indigo-600">Print summary</a>
|
|
<a href="{{ route('care.specialty.ambulance.reports') }}" class="font-medium text-indigo-600">Ambulance reports</a>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mt-4 grid gap-3 sm:grid-cols-3">
|
|
<div class="rounded-xl border border-slate-100 bg-slate-50 px-3 py-3">
|
|
<p class="text-xs font-semibold uppercase tracking-wide text-slate-500">Call</p>
|
|
<p class="mt-1 text-sm font-semibold text-slate-900">{{ $dispatch['call_nature'] ?? '—' }}</p>
|
|
<p class="mt-1 text-xs text-slate-500">Priority {{ $dispatch['priority'] ?? '—' }}</p>
|
|
</div>
|
|
<div class="rounded-xl border border-slate-100 bg-slate-50 px-3 py-3">
|
|
<p class="text-xs font-semibold uppercase tracking-wide text-slate-500">Scene</p>
|
|
<p class="mt-1 text-sm font-semibold text-slate-900">{{ $scene['chief_complaint'] ?? '—' }}</p>
|
|
<p class="mt-1 text-xs text-slate-500">Acuity {{ $scene['acuity'] ?? '—' }}</p>
|
|
</div>
|
|
<div class="rounded-xl border border-slate-100 bg-slate-50 px-3 py-3">
|
|
<p class="text-xs font-semibold uppercase tracking-wide text-slate-500">Destination / handover</p>
|
|
<p class="mt-1 text-sm font-semibold text-slate-900">{{ $enRoute['destination'] ?? ($handover['receiving_facility'] ?? 'Not set') }}</p>
|
|
<p class="mt-1 text-xs text-slate-500">{{ $handover['outcome'] ?? '—' }}</p>
|
|
</div>
|
|
</div>
|
|
|
|
<dl class="mt-4 grid gap-3 text-sm sm:grid-cols-2">
|
|
<div>
|
|
<dt class="text-slate-500">Location</dt>
|
|
<dd class="font-medium text-slate-900">{{ $dispatch['location'] ?? '—' }}</dd>
|
|
</div>
|
|
<div>
|
|
<dt class="text-slate-500">En-route interventions</dt>
|
|
<dd class="font-medium text-slate-900">{{ \Illuminate\Support\Str::limit($enRoute['interventions'] ?? '—', 80) }}</dd>
|
|
</div>
|
|
<div>
|
|
<dt class="text-slate-500">Queue</dt>
|
|
<dd class="font-medium text-slate-900">
|
|
{{ $workspaceVisit->appointment?->queue_ticket_number ?? '—' }}
|
|
@if ($workspaceVisit->appointment?->queue_ticket_status)
|
|
<span class="text-slate-500">({{ $workspaceVisit->appointment->queue_ticket_status }})</span>
|
|
@endif
|
|
</dd>
|
|
</div>
|
|
<div>
|
|
<dt class="text-slate-500">Checked in</dt>
|
|
<dd class="font-medium text-slate-900">{{ $workspaceVisit->checked_in_at?->format('d M Y H:i') ?? '—' }}</dd>
|
|
</div>
|
|
</dl>
|
|
|
|
@if (! empty($clinicalAlerts))
|
|
<div class="mt-4 space-y-1.5 border-t border-slate-100 pt-4">
|
|
<p class="text-xs font-semibold uppercase tracking-wide text-slate-500">Alerts</p>
|
|
@foreach ($clinicalAlerts as $alert)
|
|
<p class="text-sm {{ ($alert['severity'] ?? '') === 'critical' ? 'text-rose-700' : 'text-amber-800' }}">
|
|
{{ $alert['message'] ?? '' }}
|
|
</p>
|
|
@endforeach
|
|
</div>
|
|
@endif
|
|
</section>
|