@extends('layouts.app') @section('title', 'Inpatient Visits') @section('content') {{-- Top Actions — Issue #15: button enlarged to text-sm px-5 py-2.5. The Maternity Ward fold-in button (Issue #1, May 12 2026) was removed May 14 2026 once Maternity Ward was restored as a top-level sidebar item — duplication, not navigation help. --}}
Admit Patient
{{-- Stats removed in Issue #14 May 2 2026: status filter dropdown + table count cover the same info without the visual weight. --}} {{-- Queue --}}
@if(request()->hasAny(['search','status','ward'])) Clear @endif
{{-- Column order updated 25 May 2026 to: Admission Date · Patient · Age/Sex · Ward/Bed · Days · Clinician · Status MRN and Admission Dx were dropped from the list view — MRN is visible on the encounter, and the admission diagnosis was rarely scannable at the column-width we had it constrained to. --}} @forelse($admissions as $adm) {{-- Whole row navigates to the inpatient encounter. Long- stay (>7 days) admissions get a soft amber tint so they stand out for the nurse-in-charge to follow up. --}} @empty @endforelse
Admission Date Patient Age / Sex Ward / Bed Days Clinician Status
{{ $adm->admission_date->format('d M Y') }}

{{ $adm->patient->full_name ?? '' }}

{{ $adm->patient->phone ?? '' }}

{{ $adm->patient->age ?? '' }} / {{ ucfirst(substr($adm->patient->gender ?? '', 0, 1)) }} {{ $adm->ward->name ?? '' }} · Bed {{ $adm->bed->bed_number ?? '' }} {{ $adm->length_of_stay }}d {{ $adm->clinician->name ?? '-' }} @php $asc = ['admitted'=>'badge-info','discharged'=>'badge-success']; @endphp {{ ucfirst($adm->status) }}
No admissions found.
@if($admissions->hasPages())
{{ $admissions->links() }}
@endif
@endsection