@extends('admin.layouts.home') @section('title', 'Event Details') @section('styles') @endsection @section('content')

Event Details

Back to Events
Event Information
@csrf
@csrf
@csrf @method('DELETE')
@if(session('success'))
{{ session('success') }}
@endif @if($event->image)
@endif

{{ $event->title }}

{{ $event->active ? 'Active' : 'Inactive' }} {{ $event->is_featured ? 'Featured' : 'Not Featured' }} {{ \Carbon\Carbon::parse($event->event_date)->isPast() ? 'Past Event' : 'Upcoming Event' }}

Location: {{ $event->location }}

Date: {{ \Carbon\Carbon::parse($event->event_date)->format('F d, Y') }}

Time: {{ \Carbon\Carbon::parse($event->event_time)->format('h:i A') }}

Attendees: {{ $attendees->count() }}

Interests: {{ $interests->count() }}

Created: {{ $event->created_at->format('M d, Y') }}

Description

{{ $event->description }}

@if($event->creator)
Creator
{{ $event->creator->name }}
{{ $event->creator->name }}

{{ $event->creator->email }}

@endif
Attendees
@if($attendees->isEmpty())

No attendees yet

@else
@foreach($attendees->take(10) as $attendee)
{{ $attendee->user->name }}
{{ $attendee->user->name }}

{{ $attendee->created_at->format('M d, Y') }}

@endforeach
@if($attendees->count() > 10)
+ {{ $attendees->count() - 10 }} more attendees
@endif @endif
Interested Users
@if($interests->isEmpty())

No interests yet

@else
@foreach($interests->take(10) as $interest)
{{ $interest->user->name }}
{{ $interest->user->name }}

{{ $interest->created_at->format('M d, Y') }}

@endforeach
@if($interests->count() > 10)
+ {{ $interests->count() - 10 }} more interested users
@endif @endif
@endsection