@php /** @var \App\Models\Appointment $appt */ $type = $appt->bookingType; $tz = $type?->effectiveTimezone() ?? ($appt->timezone ?: 'UTC'); $start = $appt->starts_at->copy()->setTimezone($tz); $cancelled = in_array($appt->status, ['cancelled', 'no_show'], true); $done = $appt->status === 'completed'; @endphp
{{ __('Your booking') }}
@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif
{{ $type?->name ?? $appt->title }}
@if ($cancelled) {{ __('Cancelled') }} @elseif ($done) {{ __('Completed') }} @else {{ __('Confirmed') }} @endif
{{ $start->format('l, j F Y') }}
{{ $start->format('g:i A') }} {{ $tz }}
@if ($appt->meet_url) @elseif ($type && $type->location_type === 'address' && $type->location_value)
{{ $type->location_value }}
@endif
@unless ($cancelled || $done)
{{ __('Reschedule') }}
@csrf
@endunless
{{ __('Powered by') }} {{ function_exists('brand_name') ? brand_name() : 'WaDesk' }}