@extends('front_end.layouts.home') @php $showRightSidebar = false; @endphp @section('title', $event->name) @section('left_sidebar') @include('front_end.pages.events.events_left_sidebar') @endsection @section('content')
{{ $event->name }}
{{-- --}}
@if(Carbon\Carbon::parse($event->end_date)->isPast()) Event Ended @elseif(Carbon\Carbon::parse($event->start_date)->isToday()) Happening Today @elseif(Carbon\Carbon::parse($event->start_date)->isPast() && Carbon\Carbon::parse($event->end_date)->isFuture()) Ongoing @else Upcoming @endif
{{ $event->category }}

{{ $event->name }}

{{ $goingCount }} {{ $goingCount == 1 ? 'person' : 'people' }} going
@if(Auth::check()) @if($isHost) Edit Event
@csrf @method('DELETE')
@else @endif @else Login to Participate @endif

Event Details

{{ Carbon\Carbon::parse($event->start_date)->format('M') }}
{{ Carbon\Carbon::parse($event->start_date)->format('d') }}
Date & Time

{{ Carbon\Carbon::parse($event->start_date)->format('l, F j, Y') }}

{{ Carbon\Carbon::parse($event->start_time)->format('g:i A') }} - {{ Carbon\Carbon::parse($event->end_time)->format('g:i A') }}

@if(!Carbon\Carbon::parse($event->start_date)->isPast())

Starts {{ Carbon\Carbon::parse("{$event->start_date} {$event->start_time}")->diffForHumans() }}

@endif
Location

{{ $event->location }}

Get Directions
About This Event
{{ $event->description }}
@if($event->event_url) Visit Event Website @endif

Going

{{ $goingCount }}
@if($participants->count() > 0)
@foreach($participants->take(12) as $participant)
{{ $participant->user->name }}
@if($participant->is_host) Host @endif
@endforeach
@if($goingCount > 12) @endif @else

No one has RSVP'd yet. Be the first to join!

@endif

Interested

{{ $interestedCount }}
@if($interestedUsers->count() > 0)
@foreach($interestedUsers->take(12) as $interested) @endforeach
@if($interestedCount > 12) @endif @else

No one has shown interest yet.

@endif

Event Summary

When
{{ Carbon\Carbon::parse($event->start_date)->format('D, M j, Y') }}
Where
{{ Str::limit($event->location, 30) }}
Attendees
{{ $goingCount }} Going • {{ $interestedCount }} Interested
@if($event->max_participants)
Capacity
{{ $goingCount }} / {{ $event->max_participants }} Spots Filled @if($goingCount >= $event->max_participants) Full @else {{ $event->max_participants - $goingCount }} Available @endif
@endif
@if(Auth::check() && !$isHost)
@elseif(!Auth::check()) @endif
Event Host
{{ $event->organizer->name }}
View Profile
@push('scripts') @endpush @endsection