{{-- DTHospital - outstanding lab work. Copyright (c) ICT Innovations Part of DTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content')

Outstanding lab work {{ $rows->count() }} test(s) waiting, {{ $overdue }} over three days

@if ($rows->isEmpty())

Nothing is waiting. Every requested test has a result against it.

@else @foreach ($rows as $row) @endforeach
Waiting Test Patient Requested Request
@if ($row['days'] === null) No date @else {{ $row['days'] }} day{{ $row['days'] === 1 ? '' : 's' }} @endif {{ $row['test']->name }} @if ($row['patient']) {{ $row['patient']->name }} @else Not recorded @endif {{ $row['lab']->date ?? '' }} @if ($row['lab']) Open request @endif

By test

@foreach ($byTest as $name => $count) @endforeach
{{ $name }} {{ $count }}

A test near the top of that list and near the top of the waiting list as well is usually a capacity problem rather than a one off.

@endif
@stop @section('script') @stop