@props(['event', 'withVenue' => false]) @php $tz = $event['timezone'] ?? config('event.timezone'); $start = \Illuminate\Support\Carbon::parse($event['start'], $tz); $end = \Illuminate\Support\Carbon::parse($event['end'], $tz); if ($start->isSameDay($end)) { $range = $start->format('j F Y'); } elseif ($start->format('mY') === $end->format('mY')) { $range = $start->format('j').'–'.$end->format('j F Y'); } else { $range = $start->format('j F').' – '.$end->format('j F Y'); } @endphp {{ $range }}@if ($withVenue) · {{ $event['venue'] }}@endif