@php use Illuminate\Support\Carbon; $tz = $booking->timezone ?: 'UTC'; $starts = Carbon::parse($booking->starts_at)->setTimezone($tz); $ends = Carbon::parse($booking->ends_at)->setTimezone($tz); $cancelled = $booking->status === 'cancelled'; @endphp {{ $cancelled ? __('booking.confirmation_title_cancelled', ['name' => $meetingType->name]) : __('booking.confirmation_title_confirmed', ['name' => $meetingType->name]) }}
{{-- Cancellation state is conveyed via the .icon--cancelled modifier class (not via inline style) so this view contains zero inline styles, per CodeCanyon's no-inline-styles rule. --}}

{{ $cancelled ? __('booking.confirmation_heading_cancelled') : __('booking.confirmation_heading_confirmed') }}

{{ $cancelled ? __('booking.confirmation_sub_cancelled') : __('booking.confirmation_sub_confirmed', ['email' => $booking->guest_email]) }}

{{ __('booking.meeting_label_row') }}
{{ $meetingType->name }}
{{ __('booking.host_label_row') }}
{{ $host->name }}
{{ __('booking.when_label_row') }}
{{ $starts->translatedFormat('l, M j, Y') }}
{{ $starts->translatedFormat('g:i A') }} – {{ $ends->translatedFormat('g:i A') }} ({{ $tz }})
{{ __('booking.guest_label_row') }}
{{ $booking->guest_name }}
{{ $booking->guest_email }}
@if($meetingType->location_type !== 'custom' || $meetingType->location_details)
{{ __('booking.location_label_row') }}
{{ match($meetingType->location_type) { 'google_meet' => __('booking.location_google_meet'), 'zoom' => __('booking.location_zoom'), 'phone' => __('booking.location_phone'), 'in_person' => __('booking.location_in_person'), default => __('booking.location_see_details'), } }} @if($meetingType->location_details)
{{ $meetingType->location_details }}
@endif
@endif
@if(! $cancelled) {{ __('booking.add_to_calendar_ics') }} {{ __('booking.reschedule_action') }} {{-- `data-confirm` is consumed by public/js/views/shared/confirm-form.js (declarative replacement for the legacy onsubmit handler). --}}
@csrf
@else {{ __('booking.book_new_time') }} @endif