Deploy Ladill Queue / deploy (push) Successful in 56s
Phases 1–6: tickets, counters, displays, appointments, workflows, rules, analytics, reports, feedback, admin, device API, and Gitea deploy workflow for queue.ladill.com. Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
2.2 KiB
PHP
43 lines
2.2 KiB
PHP
<x-app-layout title="New appointment">
|
|
<div class="mx-auto max-w-lg">
|
|
<h1 class="text-2xl font-semibold">Schedule appointment</h1>
|
|
<form method="POST" action="{{ route('qms.appointments.store') }}" class="mt-6 space-y-4 rounded-2xl border bg-white p-6 dark:border-slate-700 dark:bg-slate-900">
|
|
@csrf
|
|
<div>
|
|
<label class="block text-sm font-medium">Branch</label>
|
|
<select name="branch_id" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
@foreach ($branches as $branch)
|
|
<option value="{{ $branch->id }}">{{ $branch->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Queue (optional)</label>
|
|
<select name="service_queue_id" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
<option value="">Auto-select at check-in</option>
|
|
@foreach ($queues as $queue)
|
|
<option value="{{ $queue->id }}">{{ $queue->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Customer name</label>
|
|
<input name="customer_name" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Phone</label>
|
|
<input name="customer_phone" type="tel" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Email</label>
|
|
<input name="customer_email" type="email" class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-sm font-medium">Scheduled at</label>
|
|
<input name="scheduled_at" type="datetime-local" required class="mt-1 w-full rounded-lg border-slate-300 text-sm">
|
|
</div>
|
|
<button type="submit" class="btn-primary w-full">Save appointment</button>
|
|
</form>
|
|
</div>
|
|
</x-app-layout>
|