{{-- Treatment sessions log: one row per session with pain before / after. Needs $sessions, $appointment, $access, $route. --}} @php $canEdit = auth()->user()->can($access . '-create'); $canDelete = auth()->user()->can($access . '-delete'); @endphp
| Date | Treatment | Pain before | Pain after | Notes | By | |
|---|---|---|---|---|---|---|
| {{ $s->date?->format('d M, Y') }} | {{ $s->treatment }} | {{ $s->pain_before ?? '-' }} | {{ $s->pain_after ?? '-' }} @if ($better) {{ $better > 0 ? '↓' . $better : '↑' . abs($better) }} @endif | {{ $s->notes }} | {{ $s->user?->name }} | @if ($canEdit) @endif @if ($canDelete) @endif |
| No sessions yet. | ||||||
| @include('patient_mangement.appointment.clinic_assessment._pain', ['id' => 'ca_s_before']) | @include('patient_mangement.appointment.clinic_assessment._pain', ['id' => 'ca_s_after']) | |||||