@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); $type = $booking->meetingType; $host = $booking->user; @endphp {{ __('mail.meeting_booked_title') }}

{{ $forHost ? __('mail.meeting_booked_heading_host') : __('mail.meeting_booked_heading_guest') }}

{{ $type?->name }}

@if($forHost) @if($booking->guest_phone)@endif @else @endif @if($type?->location_type) @endif @if($booking->notes)@endif
{{ __('mail.meeting_booked_label_when') }}{{ $starts->translatedFormat('l, M j, Y') }}
{{ $starts->translatedFormat('g:i A') }} – {{ $ends->translatedFormat('g:i A') }} ({{ $tz }})
{{ __('mail.meeting_booked_label_guest') }}{{ $booking->guest_name }} <{{ $booking->guest_email }}>
{{ __('mail.meeting_booked_label_phone') }}{{ $booking->guest_phone }}
{{ __('mail.meeting_booked_label_host') }}{{ $host?->name }}
{{ __('mail.meeting_booked_label_location') }} {{ match($type->location_type) { 'google_meet' => __('mail.meeting_booked_location_google_meet'), 'zoom' => __('mail.meeting_booked_location_zoom'), 'phone' => __('mail.meeting_booked_location_phone'), 'in_person' => __('mail.meeting_booked_location_in_person'), default => __('mail.meeting_booked_location_default'), } }} @if($type->location_details)
{{ $type->location_details }}@endif
{{ __('mail.meeting_booked_label_notes') }}{{ $booking->notes }}
{{ __('mail.meeting_booked_btn_reschedule') }} {{ __('mail.meeting_booked_btn_cancel') }}

{{ __('mail.meeting_booked_ics_note') }}