@extends('layouts.app') @section('title','Inpatient Report') @section('content')
Total Admissions
{{ $admissions->count() }}
Discharged
{{ $admissions->where('status','discharged')->count() }}
Still Admitted
{{ $admissions->where('status','admitted')->count() }}
Avg LOS
{{ $avgLos ? round($avgLos,1) : '-' }} days
| Patient | Ward | Admitted | Discharged | Days | Outcome |
|---|---|---|---|---|---|
| {{ $a->patient->full_name ?? '' }} | {{ $a->ward->name ?? '-' }} | {{ $a->admission_date->format('d M Y') }} | {{ $a->discharge_date?->format('d M Y') ?? '-' }} | {{ $a->length_of_stay }} | {{ $a->condition_on_discharge ?? $a->status }} |