@extends('layouts.app') @section('titulo', 'Ganadores') @section('breadcrumb') Inicio Ganadores @endsection @section('contenido') {{-- Header --}}

Ganadores

Historial completo por evento
@if($eventoId) ↓ Exportar Excel @else ↓ Exportar Excel (todos) @endif
{{-- Filtros --}}
@if($segmentos->count())
@endif
{{-- Contadores --}} @if($totales)
@foreach([['ganador','#16a34a','Ganadores'],['al_agua','#d97706','Al Agua'],['anulado','#dc2626','Anulados']] as [$key,$color,$label])
{{ $totales[$key] }}
{{ $label }}
@endforeach
@endif {{-- Tabla de ganadores --}}
@forelse($ganadores as $g) @empty @endforelse
Participante Documento Boleta Segmento Premio Lugar Estado Fecha
{{ $g->participante?->nombre ?? '—' }} {{ $g->participante?->documento ?? '—' }} {{ $g->participante?->boleta ?? '—' }} {{ $g->participante?->segmento ?? '—' }} {{ $g->sorteo?->premio?->emoji }} {{ $g->sorteo?->premio?->nombre ?? '—' }} {{ $g->lugar }}° @if($g->estado === 'ganador') ● Ganador @elseif($g->estado === 'al_agua') ◑ Al agua @else ✕ Anulado @endif {{ $g->created_at->format('d/m H:i') }}
No hay ganadores con los filtros actuales.
@if($ganadores->hasPages())
{{ $ganadores->links() }}
@endif
@endsection