{{-- Shared by the tab modal (laboratory/modal.blade.php) and the single-page inline form (laboratory/index.blade.php, embed mode) — they intentionally diverge here: tabs now use the same always-visible checkbox tree as Create Lab requests (Lab\LabRequestController), grouped into the same paper-form sections and priced per test, instead of picking a lab type first and then searching for a routine inside it. Single-page mode keeps its lighter search-a-routine + queue flow (it only ever deals with one bridge-style lab type today), unchanged. --}} @if (request()->boolean('embed')) {{-- In single-page (embed) mode there's only ever one real orderable lab type in this system today ("Full blood test") — everything else under it is just a result-grouping category, not something staff actually pick — so asking someone to choose a "lab type" before they can even search for a routine was a pointless extra step. The field stays in the DOM (index.blade.php's page_js auto-selects the first one and fires its change handler on load) so the existing lab_type → routines fetch keeps working unchanged. --}}
@else {{-- The nominal lab_type — which category was picked first — is filled in by collectSelectedLabCategories() in index.blade.php's page_js, the same way Create Lab requests does it. --}} @endif
@if (request()->boolean('embed'))
Search a routine
@else
Lab routines
@foreach ($lab_categories as $section)
{{ $section['section'] }}
@foreach ($section['categories'] as $category) @include('lab.labrequest._category_group') @endforeach
@endforeach
@endif