@extends('admin.layouts.app') @section('title', 'Events & Festivals') @section('page-title', 'Events & Festivals') @section('content')

Events & Festivals (Utsav)

Braj mahotsavs, parikramas, sacred festival calendar, and religious celebrations across Dham locations.

🌐 View Live @userCan('events.create') + Add Event @enduserCan
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- ---- KPI Stats ---- --}} @php $curStatus = request('status', 'all'); $search = request('q', ''); @endphp
πŸ“… {{ $statusCounts['all'] }} All Events ⏳ {{ $statusCounts['upcoming'] }} Upcoming βœ… {{ $statusCounts['active'] }} Active ⭐ {{ $statusCounts['featured'] }} Featured πŸ“œ {{ $statusCounts['past'] }} Past Utsavs
{{-- ---- Toolbar ---- --}}
{{-- Category Selector --}}
@if($curStatus !== 'all' && !empty($curStatus)) @endif @if($search !== '') @endif @if(request('per_page')) @endif
{{-- Per Page Selector --}}
@if($curStatus !== 'all' && !empty($curStatus)) @endif @if($search !== '') @endif @if(request('category_id')) @endif
{{-- ---- Bulk Action Bar ---- --}}
selected
{{-- ---- Table Card ---- --}}
@forelse($events as $event) @empty @endforelse
Event & Festival Date & Time Venue & Location Category Status Actions
@if($event->image) {{ $event->name }} @else πŸͺ” @endif
{{ $event->name }}
{{ $event->slug }} @if($event->is_featured) FEATURED @endif
{{ \Carbon\Carbon::parse($event->event_date)->format('d M Y') }}
@if($event->event_time)
{{ $event->event_time }}
@endif
{{ $event->venue ?? 'Braj Mandal' }}
{{ $event->city ?? 'Vrindavan' }}
@if($event->category) {{ $event->category->name }} @else β€” @endif @if($event->is_active) Active @else Inactive @endif
πŸ‘οΈ @userCan('events.edit') ✏️ @enduserCan @userCan('events.delete')
name . '"? This cannot be undone.') }});"> @csrf @method('DELETE')
@enduserCan
πŸ“…

{{ $search !== '' ? 'No events match your search' : 'No events found' }}

{{ $search !== '' ? 'Try a different search query or reset filters.' : 'Schedule your first festival or event to get started.' }}

@if($search === '') @userCan('events.create') + Add Event @enduserCan @endif
{{-- ---- Pager ---- --}} @if($events->total() > 0)
Showing {{ $events->firstItem() }}–{{ $events->lastItem() }} of {{ $events->total() }} event(s)
{{ $events->links() }}
@endif
@push('scripts') @endpush @endsection