@extends('admin.layout') @section('title', 'Événements') @section('content') @if(!empty($migrationMissing))
La table events n'existe pas encore. Exécutez php artisan migrate.
@else
@forelse($events as $event) @empty @endforelse
Titre Source Catégorie Ville Date Participants Validation Statut Actions
{{ $event->title }} @if($event->created_by_user_id) Communauté @if($event->creator)
{{ trim(($event->creator->first_name ?? '').' '.($event->creator->name ?? '')) }} @endif @else Admin @endif
{{ $event->category }} {{ $event->city ?? '—' }} {{ $event->starts_at?->format('d/m/Y H:i') }} {{ $event->participants_count ?? 0 }}{{ $event->max_participants ? ' / ' . $event->max_participants : '' }} @if(($event->review_status ?? 'approved') === 'pending') En attente @elseif(($event->review_status ?? 'approved') === 'rejected') Refusé @else Approuvé @endif @if($event->is_active) Actif @else Inactif @endif
Détail @if($event->created_by_user_id && ($event->review_status ?? '') === 'pending')
@csrf
@csrf
@endif Modifier
@csrf
Aucun événement. Créez-en un pour commencer.
@endif @endsection