@extends('layouts.app') @section('title', 'Sick Leave | ' . ($sl->patient->full_name ?? '')) @section('styles') @endsection @section('content') @php $patient = $sl->patient; // Pronoun decisions based on patient gender. Defaults to neutral // forms if gender unrecorded so the cert still reads correctly. $pronouns = match (strtolower($patient->gender ?? '')) { 'male' => ['his_her' => 'his', 'he_she' => 'he', 'him_her' => 'him'], 'female' => ['his_her' => 'her', 'he_she' => 'she', 'him_her' => 'her'], default => ['his_her' => 'their','he_she' => 'they','him_her' => 'them'], }; $hisHer = $pronouns['his_her']; $heShe = ucfirst($pronouns['he_she']); $himHer = $pronouns['him_her']; $signOff = $sl->sign_off_name; $forGuardian = $sl->isForGuardian(); @endphp {{-- On-screen action bar; hidden in print view --}}
| Name: | {{ $patient->full_name ?? '' }} | Patient ID: | {{ $patient->mrn ?? '' }} | Gender: | {{ ucfirst($patient->gender ?? '') }} | Age: | {{ $patient->age ?? '' }} {{ $patient->age == 1 ? 'year' : 'years' }} |
| Treatment Date: | {{ $sl->treatment_date?->format('d M Y') }} | Days Off: | {{ $sl->days }} {{ $sl->days == 1 ? 'day' : 'days' }} | Effective Through: | {{ optional($sl->end_date)->format('d M Y') }} |
| Leave Issued To: | {{ $sl->guardian_name }} | Relationship: | {{ $sl->guardian_relationship ?: 'Guardian' }} | Capacity: | Caregiver of patient |
The above named client (a minor under our care) was attended to at our facility on {{ $sl->treatment_date?->format('d M Y') }} and is being managed accordingly. To enable continued care and support, {{ $hisHer }} {{ $relText }}, {{ $sl->guardian_name }}, has been granted {{ $sl->days }} {{ $sl->days == 1 ? 'day' : 'days' }} off duty effective today.
Kindly accord {{ $sl->guardian_name }} the necessary support as may be appropriate.
@else {{-- Standard patient-issuance phrasing (unchanged from original). --}}The above named client sought treatment at our facility on {{ $sl->treatment_date?->format('d M Y') }} and managed accordingly. As part of {{ $hisHer }} management, {{ $heShe }} has been granted {{ $sl->days }} {{ $sl->days == 1 ? 'day' : 'days' }} off duty effective today to enable quick recuperation.
Kindly accord {{ $himHer }} the necessary support as may be appropriate.
@endifIssued By:
{{ $signOff }}
Attending Clinician
Issued: {{ $sl->issued_at?->format('d M Y H:i') }}
Signature & Stamp: