@include('frontend.layouts.patient-sidebar')

Appointment

@csrf
@foreach ($testCategories as $category)

{{ $category->category }}

@foreach (['laboratory', 'checkup'] as $type)
{{ ucfirst($type) }} Tests
@php // Get tests for the current type $testsOfType = $category->tests->where('test_type', $type); @endphp @if ($testsOfType->isEmpty())

No {{ $type }} tests available.

@else @foreach ($testsOfType as $test)
@endforeach @endif
@endforeach
@endforeach