@extends('layouts.admin') @section('admin_title', $event->title) @section('admin_subtitle', "Vue de gestion de l'événement et des actions rapides.") @section('admin_actions') Retour @unless($event->trashed()) Voir côté public @endunless Modifier @endsection @section('admin_content') @if ($event->trashed())
Événement archivé

Il est caché du site public, mais reste consultable et administrable ici.

@endif
Statut{{ $event->trashed() ? 'archivé' : $event->status }}

{{ $event->starts_at->isPast() ? 'Événement passé' : 'Événement à venir' }}

{{ $event->participation_mode === 'interest' ? 'Intéressés actifs' : 'Inscrits' }}{{ $event->participation_mode === 'interest' ? $event->active_interests_count : $event->confirmed_registrations_count }}

{{ $event->participation_mode === 'interest' ? $event->interests_count.' trace(s) conservée(s).' : $event->registrations_count.' inscription(s) au total.' }}

Places{{ $event->capacity ?: '∞' }}

{{ is_null($event->remainingSeats()) ? 'Capacité illimitée' : $event->remainingSeats().' disponible(s)' }}

Type{{ $event->type?->name ?: '-' }}

{{ $event->place ?: 'Lieu à préciser' }}

Résumé public

{{ $event->starts_at->format('d/m/Y H:i') }}

Résumé court : {{ $event->excerpt ?: 'Non renseigné' }}

Description : {{ $event->description ?: 'Aucun contenu détaillé publié.' }}

Mode : {{ $event->participation_mode === 'interest' ? 'Je suis intéressé' : 'Inscription obligatoire' }}

Participation : {{ $event->registration_enabled ? 'ouverte' : 'fermée' }} · Liste d'attente : {{ $event->waiting_list_enabled ? 'oui' : 'non' }}

@if ($event->image)
Image associée à l'événement
@endif

Actions

Modifier l'événement @if ($canManageParticipants) Exporter les participants CSV @endif @if ($event->trashed())
@csrf @method('patch')
@else
@csrf @method('delete')
@endif @if ($canManageParticipants)
@csrf @method('delete')
@endif
@if ($canManageParticipants)

Participants

{{ $registrations->total() }} inscription(s)
@forelse ($registrations as $registration)
{{ $registration->status }}

{{ $registration->user->name }}

{{ $registration->user->email }}{{ $registration->user->phone ? ' · '.$registration->user->phone : '' }} · {{ $registration->guests_count }} accompagnant(s)

@if ($registration->message)

{{ $registration->message }}

@endif
@csrf @method('patch')
@empty

Aucun participant inscrit pour le moment.

@endforelse
{{ $registrations->links() }}
@endif @if ($canManageParticipants && $event->participation_mode === 'interest')

Personnes intéressées

{{ $interests->total() }} clic(s)
@forelse ($interests as $interest)
{{ $interest->active ? 'Actif' : 'Retiré' }}

{{ $interest->user?->name ?: 'Visiteur anonyme' }}

{{ $interest->user?->email ?: 'Aucun compte nécessaire' }} · IP {{ $interest->ip_address }} · Intérêt {{ $interest->interested_at?->format('d/m/Y H:i') }}{{ $interest->uninterested_at ? ' · Retiré '.$interest->uninterested_at->format('d/m/Y H:i') : '' }}

@empty

Aucun intérêt enregistré pour le moment.

@endforelse
{{ $interests->links() }}
@endif @endsection