@php
$patient = $patient ?? null;
$appointment = $appointment ?? null;
$matches = $matches ?? collect();
$patientQuery = $patientQuery ?? '';
$channels = $channels ?? [];
$load = $load ?? null;
$submitLabel = $submitLabel ?? 'Book appointment';
$action = $action ?? route('appointments.store');
$method = $method ?? 'POST';
$backRoute = $backRoute ?? route('appointments.index');
@endphp
@push('scripts')
@endpush
@if (! $patient)
Search the master patient index first. A booking is always made against an existing record —
if the patient is new, register them before booking.
@foreach ($matches as $match)
@endif
The original booking is closed as rescheduled and keeps its history. The patient is given a fresh token on the new list, so tell them the new number.