@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
{{-- 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. --}}
@if($cancelled)
@else
@endif
{{ $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