@extends('theme::layout') @section('title', $event->title) @section('meta_description', Str::limit(strip_tags($event->description), 160)) @section('content')
@php use Illuminate\Support\Str; @endphp @if($event->image) {{ $event->title }} @endif
@if($event->category) {{ $event->category }} @endif @if($event->allDay) All Day @endif

{{ $event->title }}

Start: @if($event->allDay) {{ \Carbon\Carbon::parse($event->start_date)->format('l, d M Y') }} @else {{ \Carbon\Carbon::parse($event->start_date)->format('l, d M Y \a\t g:i A') }} @endif
@if($event->end_date)
End: @if($event->allDay) {{ \Carbon\Carbon::parse($event->end_date)->format('l, d M Y') }} @else {{ \Carbon\Carbon::parse($event->end_date)->format('l, d M Y \a\t g:i A') }} @endif
@endif @if($event->location)
Location: {{ $event->location }}
@endif @if($event->organised_by)
Organised by: {{ $event->organised_by }}
@endif
@if($event->description)
{!! $event->description !!}
@endif @if($event->gallery->isNotEmpty())

Event Photos

@foreach($event->gallery as $photo) {{ $event->title }} @endforeach
@endif
← Back to Events
@endsection