@extends('layouts.app') @section('title', 'Laboratory') @section('styles') @endsection @section('content') {{-- Page header removed per UI cleanup; search/filter form is now the top-most bar on the page (sidebar already names the page). --}}
All time @if(request()->hasAny(['search','urgency','from','to','date','all']))Clear@endif
@if(request()->hasAny(['search','from','to','date','all']))

Showing @if(request('all')) all lab orders @elseif(request('from') && request('to')) orders from {{ request('from') }} to {{ request('to') }} @elseif(request('from')) orders from {{ request('from') }} onward @elseif(request('to')) orders up to {{ request('to') }} @elseif(request('date')) orders for {{ request('date') }} @else matching orders @endif — {{ $orders->total() }} result{{ $orders->total() === 1 ? '' : 's' }}.

@else

Showing the last 7 days. Use the date range or All time to see history.

@endif
{{-- Stats removed Issue #15: tab badges convey same volume info. --}}
@include('lab._orders_table', ['filterStatus' => 'ordered', 'ordersSource' => $orders])
@include('lab._orders_table', ['filterStatus' => 'in_process', 'ordersSource' => $inProgressOrders])
@include('lab._orders_table', ['filterStatus' => 'validated', 'ordersSource' => $orders])
@endsection @section('scripts') @include('partials._tab-state-helper', ['defaultTab' => 'ordered']) @endsection