@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

{{ $event->name }}

{!! $event->description !!}

Event Images ({{ count($images) }})

@foreach($images as $image)
@endforeach

Event information

  • Organizer: {{ $event->user?->name() }}
  • Email: {{$event->user?->email}}
  • Type: {{ $event->type->name }} Event
  • Price: {{ count($prices) > 0 ? 'Paid' : 'Free' }} Event
  • Start: {{ (new DateTime($event->start_time))->format('D d M, Y - h:m A') }}
  • Finish: {{ (new DateTime($event->end_time))->format('D d M, Y - h:m A') }}
@if($event->user?->id === $user?->user_id) Edit Event @endif @if(count($prices) != 0) Buy Ticket(s) @endif