{{-- ICTHospital - bed occupancy over a date range. The per day bar is drawn with a plain div rather than a charting library, because adding a JavaScript dependency for one horizontal bar is not worth the page weight or the supply chain. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content')

Bed occupancy {{ $from->toDateString() }} to {{ $to->toDateString() }}


Beds on the ward board{{ $totalBeds }}
Occupied right now{{ $currentlyOccupied }}
Busiest day in range{{ $peak }}
Discharges in range{{ $discharges }}
Average length of stay @if ($averageStay === null) No completed stays in range @else {{ $averageStay }} day(s) @endif
@if ($totalBeds === 0)

No beds are set up yet, so occupancy has nothing to measure against. Add them on the ward board.

@endif @if ($byWard->isNotEmpty())

Admissions by ward

@foreach ($byWard as $ward => $count) @endforeach
{{ $ward }}{{ $count }}
@endif

Day by day

@foreach ($days as $day) @endforeach
Date Occupied Of {{ $totalBeds }} bed(s)
{{ $day['date'] }} {{ $day['occupied'] }}
{{ $day['percent'] }}%
@stop @section('script') @stop