@include('admin.partials.navbar')

Tirages au sort

header

Faire un tirage

Nombre total d’acheteurs : 0

@if($nextDrawDate)

Prochain tirage : {{ $nextDrawDate->format('d/m/Y') }}

@endif @if($nextPrize)

Lot prévu : {{ $nextPrize }}

@endif @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(!$canDraw && $nextDrawDate)
Le tirage sera disponible le {{ $nextDrawDate->format('d/m/Y') }}. Vous avez jusqu'à 23:59 pour effectuer le tirage au sort.
@endif
@csrf

Historique des gagnants

@forelse($draws as $draw) @empty @endforelse
ID Date tirage Gagnant Email Lot Supprimer
#{{ $draw->id }} {{ $draw->draw_date->format('d/m/Y') }} {{ $draw->winner?->name ?? '-' }} {{ $draw->winner?->email ?? '-' }} {{ $draw->prize ?? '-' }}
@csrf @method('DELETE')
Aucun tirage effectué.
{{ $draws->links() }}