Files
NextChair/resources/views/customer/appointment.blade.php
T
Stefan Lazic 2ef3654841
CI / ci (push) Canceled after 0s
PHP Rebuild
Initial PHP rebuild of the app
2026-09-05 08:21:33 +01:00

2 lines
1.4 KiB
PHP

<x-layouts.public :business="$business"><main class="mx-auto max-w-2xl px-5 pb-16 pt-8 lg:px-10"><a href="{{ route('customer.appointments') }}" class="text-xs font-bold uppercase tracking-widest text-muted">← Appointments</a><div class="mt-12"><p class="text-[10px] font-bold uppercase tracking-[0.3em] text-accent-foreground">Appointment details</p><h1 class="mt-3 text-4xl font-black tracking-tight">{{ $appointment->startAt->setTimezone($business->timezone)->format('l, j F') }}</h1><p class="mt-3 text-sm text-muted">{{ $appointment->startAt->setTimezone($business->timezone)->format('g:i A') }} · with {{ $appointment->staff->user?->name ?: 'your barber' }}</p></div><x-ui.card class="mt-8 p-6"><p class="text-sm font-bold">{{ $appointment->services->pluck('service.name')->join(', ') }}</p><p class="mt-3 text-sm text-muted">Status: {{ str_replace('_', ' ', ucfirst(strtolower($appointment->status->value))) }}</p><p class="mt-5 border-t border-line pt-5 text-sm font-bold">Total £{{ number_format((float) $appointment->services->sum('priceAtBooking') - (float) ($appointment->discountAmount ?? 0), 2) }}</p></x-ui.card>@if (in_array($appointment->status->value, ['PENDING', 'CONFIRMED']))<form method="POST" action="{{ route('customer.appointments.cancel', $appointment->id) }}" class="mt-6">@csrf<button class="text-xs font-bold uppercase tracking-widest text-danger">Cancel appointment</button></form>@endif</main></x-layouts.public>