@php $meta = $event->meta; $title = $meta->title ?? '(no title)'; $allDay = (bool) ($meta->all_day ?? false); $calendarName = $calendar->displayname ?? __('common.calendar'); $calendarColor = $calendar->meta_color ?? $calendar->calendarcolor ?? default_calendar_color(); $rrule = $meta?->extra['rrule'] ?? null; $tzid = $meta?->extra['tzid'] ?? $tz; $locationLabel = $meta?->location_label ?? ''; $hasLocation = trim((string) $locationLabel) !== ''; $venue = $meta?->venue; $addressLine1 = $venue?->street; $addressLine2 = trim(implode(', ', array_filter([ $venue?->city, $venue?->state, $venue?->postal, ]))); $addressLine3 = $venue?->country; @endphp
{{ $title }}

{{ __('calendar.event.when') }}

@if ($allDay)

{{ $start->format('l, F j, Y') }} @unless ($start->isSameDay($end))  –  {{ $end->format('l, F j, Y') }} @endunless ({{ __('calendar.event.all_day') }})

@else

{{ $start->format('l, F j, Y · g:i A') }} @unless ($start->equalTo($end))  –  {{ $end->isSameDay($start) ? $end->format('g:i A') : $end->format('l, F j, Y · g:i A') }} @endunless

@endif

{{ __('common.timezone') }}: {{ $tzid }}

{{ __('common.calendar') }}

{{ $calendarName }}

{{ __('calendar.event.location') }}

@if ($hasLocation)

{{ $locationLabel }}

@if ($addressLine1 || $addressLine2 || $addressLine3)
@if ($addressLine1)
{{ $addressLine1 }}
@endif @if ($addressLine2)
{{ $addressLine2 }}
@endif @if ($addressLine3)
{{ $addressLine3 }}
@endif
@endif
{{ __('calendar.event.map_coming') }}
@else

{{ __('calendar.event.no_location') }}

@endif

{{ __('calendar.event.details') }}

{{ __('calendar.event.repeats') }}: @if ($rrule) {{ $rrule }} @else {{ __('calendar.event.does_not_repeat') }} @endif
{{ __('calendar.event.category') }}: {{ $meta->category ?? __('calendar.event.none') }}
{{ __('calendar.event.visibility') }}: {{ ($meta->is_private ?? false) ? __('calendar.event.private') : __('calendar.event.default') }}
{{ __('calendar.event.all_day_handling') }}: {{ $allDay ? __('calendar.event.all_day') : __('calendar.event.timed') }} · {{ __('calendar.event.all_day_coming') }}

{{ __('calendar.event.alerts') }}

@if (!is_null($meta->reminder_minutes))

{{ __('calendar.event.reminder') }}: {{ $meta->reminder_minutes }} {{ __('calendar.event.minutes_before') }}

@else

{{ __('calendar.event.alerts_coming') }}

@endif

{{ __('calendar.event.invitees') }}

{{ __('calendar.event.invitees_coming') }}

{{ __('calendar.event.attachments') }}

{{ __('calendar.event.attachments_coming') }}

{{ __('calendar.event.notes') }}

@if ($meta->description)
{!! Str::markdown(nl2br(e($meta->description))) !!}
@else

{{ __('calendar.event.no_description') }}

@endif