@php $filtered = request()->hasAny(['q', 'status', 'department', 'priority', 'scope', 'from', 'to']); @endphp @can('lab-catalogue.manage') Test catalogue @endcan @can('lab-orders.create') Order tests @endcan
@if ($filtered) Clear @endif
@if ($orders->isEmpty()) @if ($filtered) Nothing in the worklist matches this filter. @else Requests appear here the moment a clinician places them. Order from the test guide to begin. @endif @can('lab-orders.create') Order tests @endcan @else
@foreach ($orders as $order) @endforeach
Order Patient Department Priority Tests Status Ordered
{{ $order->order_no }}
{{ $order->patient?->full_name ?? 'Unknown patient' }}
{{ $order->patient?->medical_record_number }}
@if ($order->patient?->is_confidential) @endif
{{ $order->items_count }}
{{ $order->orderedBy?->name ?? 'Unattributed' }}
{{ $order->ordered_at?->format('d M Y H:i') }}
Open
{{ $orders->links() }}
@endif