@extends('layouts.public') @section('title', 'Détails - ' . $ticketType->name . ' - ' . $event->title) @section('content')

{{ $ticketType->name }}

{{ $event->title }}

{{ $stats['total_sold'] }}
Billets vendus
{{ number_format($stats['total_revenue']) }}
FCFA générés
@if ($ticketType->quantity)
{{ $stats['remaining'] ?? 0 }}
Places restantes
@php $percentage = $ticketType->quantity > 0 ? round(($stats['total_sold'] / $ticketType->quantity) * 100) : 0; @endphp
{{ $percentage }}%
Taux de vente
@else
Places illimitées
{{ number_format($ticketType->price) }}
Prix unitaire FCFA
@endif
@if ($ticketType->quantity)

Progression des ventes

{{ $stats['total_sold'] }} / {{ $ticketType->quantity }} vendus {{ $percentage }}%
@endif

Inscriptions

{{ $registrations->total() }} au total
@if ($registrations->count() > 0)
@foreach ($registrations as $registration) @endforeach
Participant Date Quantité Montant Statut
{{ $registration->full_name }}
{{ $registration->email }}
{{ $registration->created_at->format('d/m/Y H:i') }} {{ $registration->quantity }} {{ number_format($registration->total_amount) }} FCFA @switch($registration->status) @case('confirmed') Confirmé @break @case('pending') En attente @break @case('cancelled') Annulé @break @default {{ ucfirst($registration->status) }} @endswitch
@if ($registrations->hasPages())
{{ $registrations->links() }}
@endif @else

Aucune inscription

Aucun participant ne s'est encore inscrit avec ce type de billet.

@endif

Informations du billet

Prix
@if ($ticketType->price > 0) {{ number_format($ticketType->price) }} FCFA @else Gratuit @endif
@if ($ticketType->description)
Description
{{ $ticketType->description }}
@endif
Statut
@if ($ticketType->is_active) Actif @else Inactif @endif
@if ($ticketType->min_quantity > 1 || $ticketType->max_quantity)
Contraintes de quantité
@if ($ticketType->min_quantity > 1) Min: {{ $ticketType->min_quantity }} @endif @if ($ticketType->min_quantity > 1 && $ticketType->max_quantity) • @endif @if ($ticketType->max_quantity) Max: {{ $ticketType->max_quantity }} @endif
@endif @if ($ticketType->sale_start_date || $ticketType->sale_end_date)
Période de vente
@if ($ticketType->sale_start_date) À partir du {{ $ticketType->sale_start_date->format('d/m/Y H:i') }} @endif @if ($ticketType->sale_start_date && $ticketType->sale_end_date)
@endif @if ($ticketType->sale_end_date) Jusqu'au {{ $ticketType->sale_end_date->format('d/m/Y H:i') }} @endif
@endif
Créé le
{{ $ticketType->created_at->format('d/m/Y H:i') }}
@if ($ticketType->updated_at->ne($ticketType->created_at))
Dernière modification
{{ $ticketType->updated_at->format('d/m/Y H:i') }}
@endif

Actions rapides

Modifier ce type
@csrf @method('PATCH')
@if ($ticketType->sold === 0)
@csrf @method('DELETE')
@endif

Aperçu participant

{{ $ticketType->name }}

@if ($ticketType->price > 0) {{ number_format($ticketType->price) }} FCFA @else Gratuit @endif
@if ($ticketType->description)

{{ $ticketType->description }}

@endif
@if ($ticketType->quantity) {{ $ticketType->remainingQuantity() }} places restantes @else Places illimitées @endif

Ceci est ce que verront les participants lors de l'inscription

@endsection