@props(['patient', 'type', 'entry', 'resolveLabel']) @php $statuses = \App\Modules\Patients\Enums\ClinicalRecordStatus::class; @endphp @can('manageClinical', $patient) @if ($entry->status === $statuses::Active) {{-- Two separate buttons rather than a joined group. A btn-group locks them to one line, and in a 21rem panel that is what broke the labels across two rows inside their own buttons. --}}
@csrf @method('PATCH')
{{-- Deleting is behind a prompt that demands a reason. Taking a colleague's entry off the record is a statement somebody may have to account for, and an unexplained one is worse than none. The reason is also what makes this recoverable: the row is kept and hidden rather than removed, so "why did this go" has an answer years later. --}}
@csrf @method('PATCH')
@endif @endcan