@extends('layouts.app') @section('title', 'Maternity Ward') @section('content') {{-- Top Actions — Admit Patient, top-left. Breadcrumb row ("< Inpatient Visits / Maternity Ward") was removed May 14 2026 once Maternity Ward was restored as a top-level sidebar entry. The page title and sidebar active-state already convey location, and Maternity Ward is no longer a child of General Inpatient — they are siblings under Patient Visits. The button is left-aligned to match the pattern on General Inpatient. --}}
Admit Patient

Active Maternity Admissions ({{ $admissions->count() }})

@forelse($admissions as $a) {{-- Round 12: row click → Manage. Actions column removed. --}} @empty@endforelse
PatientAdmittedGAReasonStatusProvider
{{ $a->patient->full_name ?? '' }}
{{ $a->patient->mrn ?? '' }}
{{ $a->admission_date?->format('d M Y H:i') ?? '-' }} {{ $a->gestational_age_weeks ?? '-' }}wks {{ Str::limit($a->reason_for_admission, 40) }} {{ ucfirst(str_replace('_',' ',$a->status)) }} {{ $a->attendingProvider->name ?? '-' }}
No active maternity admissions.

Discharged

@forelse($discharged as $a) {{-- Round 12: row click → record. Round 14: use the model's length_of_stay accessor (calendar-day inclusive) instead of the raw diffInDays(), which was under-counting by 1 against the discharge summary. --}} @empty@endforelse
PatientAdmittedDischargedDays
{{ $a->patient->full_name ?? '' }}{{ $a->admission_date->format('d M') }}{{ $a->discharge_date?->format('d M') ?? '-' }}{{ $a->length_of_stay }}
None.
{{ $discharged->links() }}
@endsection