@extends('layouts.app') @section('title', 'New Appointment') @section('content')
@csrf
{{-- preselectedPatient is set when this form is opened with ?patient_id=X (e.g. from the ANC encounter's "Book Next Appointment" button). The search input shows the patient's name as text the user can edit, and the hidden input carries the id forward to submit. --}}

@if($preselectedPatient) Pre-selected from ANC encounter. Clear the box to choose a different patient. @else Start typing to search registered patients @endif

{{-- Lab and Radiology excluded: those open direct encounters (no consultation), not appointments. Their walk-ins are booked from the Queue page's Start New Visit button instead. --}}
{{-- Pool restricted to people who see patients (Clinician / Nurse / Triage Nurse / Dental User) via the standard clinician partial. --}}
{{-- placeholder="dd/mm/yyyy" gives the user a visible hint of the expected date shape when the field is empty. Flatpickr propagates this placeholder attribute to its visible altInput on init, so the hint shows in the picker that the user actually interacts with. --}}
Cancel
@push('scripts') @endpush @endsection