Files
ladill-care/resources/views/care/specialty/oncology/workspace-overview.blade.php
T
isaaccladandCursor b7e5a7d9ad
Deploy Ladill Care / deploy (push) Successful in 32s
Add full Oncology, Renal Care, and Surgery specialty clinical suites.
Match Pediatrics/ENT depth with stages, workspace tabs, clinical records, reports/print, demo seed, and suite tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-19 20:16:18 +00:00

61 lines
3.1 KiB
PHP

@php
$hist = $oncologyHistory?->payload ?? [];
$staging = $oncologyStaging?->payload ?? [];
$plan = $oncologyPlan?->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">Oncology overview</h3>
<p class="mt-0.5 text-xs text-slate-500">History, staging, investigations, plan, and treatment for this episode.</p>
</div>
<div class="flex flex-wrap gap-3 text-sm">
<a href="{{ route('care.specialty.oncology.print', $workspaceVisit) }}" target="_blank" class="font-medium text-indigo-600">Print summary</a>
<a href="{{ route('care.specialty.oncology.reports') }}" class="font-medium text-indigo-600">Oncology 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">Diagnosis</p>
<p class="mt-1 text-sm font-semibold text-slate-900">{{ $staging['diagnosis'] ?? ($plan['diagnosis'] ?? '—') }}</p>
<p class="mt-1 text-xs text-slate-500">Stage {{ $staging['stage'] ?? '—' }}</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">ECOG</p>
<p class="mt-1 text-sm font-semibold text-slate-900">{{ $staging['performance_status'] ?? '—' }}</p>
<p class="mt-1 text-xs text-slate-500">{{ $plan['intent'] ?? '—' }}</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">Plan</p>
<p class="mt-1 text-sm font-semibold text-slate-900">{{ \Illuminate\Support\Str::limit($plan['plan'] ?? 'Not set', 40) }}</p>
<p class="mt-1 text-xs text-slate-500">{{ $plan['follow_up'] ?? '—' }}</p>
</div>
</div>
<dl class="mt-4 grid gap-3 text-sm sm:grid-cols-2">
<div>
<dt class="text-slate-500">History</dt>
<dd class="font-medium text-slate-900">{{ $hist['history'] ?? '—' }}</dd>
</div>
<div>
<dt class="text-slate-500">Queue</dt>
<dd class="font-medium text-slate-900">
{{ $workspaceVisit->appointment?->queue_ticket_number ?? '—' }}
</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>