@extends('layout') @push('styles') @endpush @section('content') @if (session('success'))
×

Success!

{{ session('success') }}

@endif

All Events

Overview

{{-- Tabs / Filters (All | Published | Postponed | Draft | Paused | Completed | Cancelled) --}}
@php $baseQuery = request()->except(['page', 'status']); $status = request('status', 'all'); $statuses = ['published', 'postponed', 'draft', 'paused', 'completed', 'cancelled']; @endphp @foreach ($statuses as $st) @endforeach
{{-- Filters Row (search, sort, date) --}}
{{-- Keep status when changing other filters --}} {{-- Search --}} {{-- Sort --}} {{-- Direction --}} {{-- Date (start_date) --}} {{-- Buttons (INLINE on Desktop, WRAP on Mobile) --}}
Reset
{{-- Table --}}
@forelse($events as $event) @empty @endforelse
Event Title Vendor Name Start Date End Date Status Location
icon

{{ $event->title }} ID-{{ $event->id }}

{{ $event->provider->name ?? 'N/A' }} {{ optional($event->start_date) ? \Carbon\Carbon::parse($event->start_date)->format('M d, Y') : '—' }} {{ optional($event->end_date) ? \Carbon\Carbon::parse($event->end_date)->format('M d, Y') : '—' }} {{ ucfirst($event->status) }} {{ $event->location ?? 'N/A' }}
{{-- Action Trigger --}} {{-- Dropdown Menu --}}
icon Edit
@csrf @method('DELETE')

Are you sure?

This action cannot be undone.

No events found.
{{-- Items per page dropdown --}}
@foreach (request()->except('per_page') as $key => $value) @endforeach
{{-- Pagination Display --}}

Page {{ $events->currentPage() }} of {{ $events->lastPage() }}

{{-- Previous --}} @if ($events->onFirstPage()) @else icon @endif {{-- Next --}} @if ($events->currentPage() == $events->lastPage()) @else icon @endif
{{-- Optional small script: press Enter in search to submit --}} @endsection