@extends('layouts.frontend.master') @section('title', 'Events - BAU 2001–2002 Alumni Association') @push('css') {{-- --}} @endpush @section('content')

All Events ({{ $events->count() }})

Discover and join our upcoming events.

All Events @foreach(['conference', 'seminar', 'workshop', 'meeting', 'celebration', 'training', 'exhibition'] as $cat) @if($allEvents->where('category', $cat)->count() > 0) {{ ucfirst($cat) }} @endif @endforeach
@if($events->count() > 0)
@foreach($events as $event)
{{ $event->name }}
{{ $event->category_name }} @if($event->is_guest_allowed) Guests Allowed @endif

{{ $event->name }}

@if(isset($event->description))

{!! Str::limit(strip_tags($event->description), 100) !!}

@endif
{{ $event->venue }}
@if($event->dates->isNotEmpty()) @php $startDate = $event->dates->min('start_date_time'); $endDate = $event->dates->max('end_date_time'); @endphp @if($startDate && $endDate)
{{ \Carbon\Carbon::parse($startDate)->format('M d, Y g:i A') }} – {{ \Carbon\Carbon::parse($endDate)->format('M d, Y g:i A') }}
@else
Date TBD
@endif @else
Date TBD
@endif
View Details {{-- @auth @php $existingRegistration = \App\Models\EventRegistration::where('user_id', auth()->id())->where('event_id', $event->id)->first(); @endphp @if($existingRegistration) View Registration @endif @else Login to Register @endauth --}}
@endforeach
@else

No Events Available

There are currently no upcoming events. Please check back later.

Back to Home
@endif
@endsection