@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
{{ $type?->name }}
| {{ __('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_ics_note') }}