@php use Carbon\Carbon; @endphp @extends('components.view') @section('themeStylesheet') @endsection @section('brandThemeOverrideSettings') @endsection @section('brandBackground') @if($brandBackground!=='' && !empty($brandBackground)) style="background-image:url('{{ $brandBackground }}');" @endif @endsection @section('header') @php echo \App\Http\Controllers\Header::index($themeDirectory,$brandLogoSmall) @endphp @php echo \App\Http\Controllers\Navigation::index($themeDirectory) @endphp @endsection @section('content')
@if(array_key_exists('image_location',$eventItem)) @if(!empty($eventItem['image_location'])) @endif @endif
{{ $eventItem['description'] }}
Event Date(s)
@if($eventDaysCnt>=2) @endif @if($repeatedEventDate)
{{ date('D, M jS',strtotime($repeatedEventDate)) }} ({{ date('g:i a',strtotime($eventItem['event_dates'][0]['starts_at'])) }} - {{ date('g:i a',strtotime($eventItem['event_dates'][0]['ends_at'])) }})
@else @php $filteredEventDates = array_filter($eventItem['event_dates'], function ($eventDate) { return Carbon::parse($eventDate['starts_at'])->isToday() || Carbon::parse($eventDate['starts_at'])->isAfter(Carbon::today()); }); @endphp @foreach($filteredEventDates as $eventDate)
{{ date('D, M jS',strtotime($eventDate['starts_at'])) }} ({{ date('g:i a',strtotime($eventDate['starts_at'])) }} - {{ date('g:i a',strtotime($eventDate['ends_at'])) }})
@endforeach @endif
@if(!empty($eventItem['url']))
@endif @if(!$disableOrdering) @if($eventItem['allow_pre_orders'])
@endif @endif
@endsection