@php $user = auth()->user(); $images = $event->images; $mainImage = $images[0]->image_path; $similarEvents = $event->similar(); $prices = $event->prices; $attending = $event->paidOrders()->whereHas('user', function ($q) use ($user){ $q->whereUserId($user?->user_id); })->first(); $attendance = $event->paidOrders; @endphp
Back To Events
@if($event->user_id === $user?->user_id) @endif @if(count($prices) != 0)
@endif
{{ (new DateTime($event->start_time))->format('D d M, Y - h:m A') }} -> {{ (new DateTime($event->end_time))->format('D d M, Y - h:m A') }}

{{ $event->name }}

{{ $event->tagline }}

{{ $event->type->name }} Event
{{ count($prices) > 0 ? 'Paid' : 'Free' }}
{!! $event->description !!}

Photos ({{ count($images) }})

@foreach($images as $image) @endforeach
@if(count($similarEvents) && !(1 != 2))

Similar Events

@foreach($similarEvents as $similarEvent) @php $similarMainImage = $similarEvent->images[0]->image_path; @endphp
{{ (new DateTime($similarEvent->start_time))->format('D d M, Y') }}

{{ $similarEvent->name }}

Lorem ipsum is placeholder text commonly used in the graphic, print, and publishing industries for previewing layouts.
{{ $similarEvent->type->name }} Event
User 02 User 03 User 04
+132
@endforeach
@endif
@if($event->user_id === $user?->user_id || $attending) @endif
{{ count($attendance) }} {{ count($attendance) == 1 ? 'person' : 'people' }} attending
@if($event->user_id === $user?->user_id || $user?->isAdmin()) View Ticket Sales @endif