@extends('layouts.app') @section('titulo', 'Dashboard') @section('contenido')

Dashboard

{{ now()->isoFormat('dddd D [de] MMMM [de] YYYY') }}
+ Nuevo Evento
{{-- Métricas --}}
@foreach([ ['Eventos Activos', $eventosActivos, "de {$totalEventos} total"], ['Participantes Disponibles', number_format($totalParticipantes), $eventoActivo ? 'en evento activo' : 'globales'], ['Sorteos Hoy', $sorteosHoy, now()->format('d/m/Y')], ['Ganadores Totales', $ganadoresTotales, 'estado: ganador'], ] as $m)
{{ $m[0] }}
{{ $m[1] }}
{{ $m[2] }}
@endforeach
{{-- Banner evento activo --}} @if($eventoActivo)
● Evento activo: {{ $eventoActivo->nombre }}
Ir a Sorteos Ver Muro
@endif {{-- Tabla de eventos recientes --}}
Eventos recientes Ver todos →
@forelse($eventosRecientes as $ev) @empty @endforelse
NombreTipoFechaEstadoAcciones
{{ $ev->nombre }} {{ $ev->tipo }} {{ \Carbon\Carbon::parse($ev->fecha)->format('d/m/Y') }} @php $estLabel = $ev->estado_label ?? 'Borrador'; $estColor = $ev->estado_color ?? '#94A3B8'; @endphp ● {{ $estLabel }} Editar
No hay eventos. Crear el primero
{{-- Gráfica ganadores por zona --}} @if($eventoActivo && $ganaByZona->count() > 0)
Ganadores por zona evento activo
@endif {{-- Accesos rápidos --}}
Participantes
Cargar CSV y gestionar
Sorteos
Ejecutar y gestionar sorteos
Ganadores
Historial y búsqueda
@endsection