@php $values = old('payload', $clinicalRecord?->payload ?? []); @endphp

{{ $workspaceTabs[$activeTab] ?? 'Clinical' }}

Structured specialty record on this visit episode.

@if ($clinicalRecord) {{ $clinicalRecord->status }} @endif
@if (! empty($clinicalAlerts))
@foreach ($clinicalAlerts as $alert)
($alert['severity'] ?? '') === 'critical', 'bg-amber-50 text-amber-900 border border-amber-100' => ($alert['severity'] ?? '') !== 'critical', ])> {{ $alert['message'] ?? '' }}
@endforeach
@endif @if (! ($canManageClinical ?? $canManageSpecialty ?? true))
@forelse ($clinicalFields as $field) @php $name = $field['name']; $value = $values[$name] ?? null; if (is_bool($value)) { $value = $value ? 'Yes' : 'No'; } @endphp
($field['type'] ?? '') === 'textarea'])>
{{ $field['label'] }}
{{ $value !== null && $value !== '' ? $value : '—' }}
@empty

No clinical record yet.

@endforelse
@else
@csrf @if (! empty($stages))
@endif @foreach ($clinicalFields as $field) @php $name = $field['name']; $value = $values[$name] ?? ''; $id = 'field_'.$name; @endphp
@if (($field['type'] ?? '') === 'textarea') @elseif (($field['type'] ?? '') === 'select') @elseif (($field['type'] ?? '') === 'boolean') @elseif (($field['type'] ?? '') === 'number') @else @endif @error('payload.'.$name)

{{ $message }}

@enderror
@endforeach
@if ($workspaceVisit->appointment) Appointment @endif
@endif