@extends('frontend.layouts.app') @section('title', $title) @section('description', $description) @section('content') @php $assetPath = fn (string $path) => asset('frontend/' . ltrim($path, '/')); $baseQuery = request()->except(['page']); @endphp @include('frontend.layouts.breadcrumb', ['title' => $pageEventsTitle ?? 'Events'])
@if(!empty($pageEventsIntro))

{{ $pageEventsIntro }}

@endif
@foreach(['upcoming' => 'Upcoming', 'past' => 'Past', 'today' => 'Today', 'this_month' => 'This month'] as $key => $label) {{ $label }} @endforeach
@if($categories->count())
All events @foreach($categories as $category) {{ $category->name }} {{ $category->events_count }} @endforeach
@endif
@forelse($events as $event) @php $brand_name = $siteName ?? config('app.name'); $category_label = strtoupper($event->category?->name ?? 'Event'); $avatar_url = $logoUrl ?? 'https://ui-avatars.com/api/?name='.urlencode($brand_name).'&background=050505&color=d69a00&bold=true&size=64'; $image_url = $event->featured_image ? asset('storage/'.$event->featured_image) : $assetPath('images/blog/blog-thumb01.webp'); $excerpt = \Illuminate\Support\Str::limit( strip_tags($event->description ?: ($event->content ?? '')), 110 ); $can_register = $event->isPublicRegistrationLinkAvailable() && $event->isRegistrationOpen(); $register_url = $can_register ? $event->registration_url : null; @endphp

{{ $brand_name }}

{{ $category_label }}

{{ $event->start_date->format('M d, Y') }}

{{ $event->title }}

{{ $event->title }}

@if($event->location)

{{ \Illuminate\Support\Str::limit($event->location, 48) }}

@endif @if($excerpt !== '')

{{ $excerpt }}

@endif
View details @if($register_url) Register @endif
@empty

No events found

Check back later or try another filter.

@endforelse
@if($events->hasPages()) @endif @if($featuredEvents->count()) @endif
@include('frontend.partials.events-tip') @include('frontend.partials.newsletter', [ 'newsletter_thumb' => $assetPath('images/about/hm1-img01.webp'), ]) @endsection @push('styles') @endpush