Initial PHP rebuild of the app
This commit is contained in:
690 files changed
+33944
-12046
No files matched your search
@@ -0,0 +1,14 @@
|
||||
<x-layouts.public :business="$business">
|
||||
<main class="mx-auto min-h-screen max-w-xl px-5 pb-16 pt-8 lg:px-10">
|
||||
<a href="{{ route('booking.time') }}" class="text-xs font-bold uppercase tracking-widest text-muted">← Time</a>
|
||||
<div class="mt-10"><p class="text-[10px] font-bold uppercase tracking-widest text-muted">Step 3 of 4</p><h1 class="mt-2 text-3xl font-black tracking-tight">Your details</h1><p class="mt-3 text-sm text-muted">We’ll use these details to send your booking confirmation.</p></div>
|
||||
<form method="POST" action="{{ route('booking.details.store') }}" class="mt-8 space-y-4 rounded-md border border-line bg-white p-6 shadow-sm">
|
||||
@csrf
|
||||
@foreach ([['firstName', 'First name', 'text'], ['lastName', 'Last name', 'text'], ['email', 'Email address', 'email'], ['phone', 'Phone number (optional)', 'tel']] as [$name, $label, $type])
|
||||
<label class="block"><span class="mb-2 ml-1 block text-[10px] font-bold uppercase tracking-widest text-muted">{{ $label }}</span><input name="{{ $name }}" type="{{ $type }}" value="{{ old($name) }}" class="w-full rounded-md border border-line px-4 py-3 text-sm outline-none focus:border-ink" @required(in_array($name, ['firstName', 'lastName', 'email']))>@error($name)<span class="mt-1 block text-xs text-danger">{{ $message }}</span>@enderror</label>
|
||||
@endforeach
|
||||
<label class="block"><span class="mb-2 ml-1 block text-[10px] font-bold uppercase tracking-widest text-muted">Notes (optional)</span><textarea name="notes" rows="4" class="w-full rounded-md border border-line px-4 py-3 text-sm outline-none focus:border-ink">{{ old('notes') }}</textarea></label>
|
||||
<x-ui.button class="mt-3 w-full" type="submit">Review booking</x-ui.button>
|
||||
</form>
|
||||
</main>
|
||||
</x-layouts.public>
|
||||
Reference in new issue
Block a user