{{-- Shared Waiting | In care board (GP Queue + specialty Queue homes). Expected vars: - $queue, $inConsultation (collections of Appointment) - $queueIntegration, $branchId - $canConsult (bool) - $queueCallNextRoute, $queueCallNextParams (optional — if set, Call next renders above board) - $startRouteName (default care.queue.start) — route(name, $appointment) - $openInCareUrl (callable Appointment $a): ?string — link for in-care Open - $inCareLabel (default "In consultation") - $lockToPractitioner, $canSwitchBranch, $branches, $practitioners, $practitionerId (filter bar) - $showFilters (default true) --}} @php $canConsult = $canConsult ?? false; $showFilters = $showFilters ?? true; $inCareLabel = $inCareLabel ?? 'In consultation'; $startRouteName = $startRouteName ?? 'care.queue.start'; $openInCareUrl = $openInCareUrl ?? function ($appointment) { return $appointment->consultation ? route('care.consultations.show', $appointment->consultation) : null; }; $queueCallNextRoute = $queueCallNextRoute ?? null; $queueCallNextParams = $queueCallNextParams ?? []; @endphp @if ($showFilters)
@endif @if ($queueCallNextRoute) @include('care.partials.queue-ops', [ 'queueIntegration' => $queueIntegration ?? null, 'queueCallNextRoute' => $queueCallNextRoute, 'queueCallNextParams' => $queueCallNextParams, 'branchId' => $branchId ?? null, ]) @endif{{ $appointment->patient?->fullName() ?? 'Patient' }}
{{ $appointment->patient?->patient_number ?? '—' }} · {{ $appointment->reason ?? '—' }}
No patients waiting.
@endforelse{{ $appointment->patient?->fullName() ?? 'Patient' }}
{{ $appointment->practitioner?->name ?? 'Unassigned' }}
No active encounters.
@endforelse