{{-- ── CABECERA ── --}}
Sistema de Conteo de Votos
REPORTE DEL DIGITADOR
Constancia oficial de registro de votos
Código de Acta
{{ $registro->codigo_acta }}
{{ now()->format('d/m/Y H:i') }}
{{-- ── CUERPO ── --}}
{{-- Digitador destacado --}}
Operador Responsable
Digitador
{{ $registro->usuario?->nombre ?? '—' }}
{{-- Datos de identificación --}} @php $electoresActa = $registro->electores ?? $registro->mesa?->cantidad_electores; @endphp @if($electoresActa) @else @endif
Mesa N° {{ $registro->numero_mesa }}  ·  Acta {{ $registro->etiquetaActa() }} Fecha de Registro {{ $registro->fecha_registro?->format('d/m/Y H:i:s') ?? '—' }}
Local de Votación {{ $registro->localVotacion?->nombre ?? '—' }}
Código de Acta {{ $registro->codigo_acta }}Total de Electores {{ number_format($electoresActa) }}
{{-- Votos especiales --}} @php $totalValidos = $registro->detalleVotos->sum('cantidad_votos'); @endphp
{{ number_format($registro->votos_nulos ?? 0) }} Nulos {{ number_format($registro->votos_blancos ?? 0) }} Blancos {{ number_format($registro->votos_impugnados ?? 0) }} Impugnados {{ $registro->votos_ausentes === null ? '—' : number_format($registro->votos_ausentes) }} Ausentes {{ number_format($totalValidos) }} Válidos
{{-- Candidatos --}} @php $detalles = $registro->detalleVotos->sortByDesc('cantidad_votos'); $maxV = $detalles->max('cantidad_votos') ?: 1; $totalV = $detalles->sum('cantidad_votos'); $palette = ['#1e293b','#166534','#1e3a8a','#7c2d12','#4c1d95','#134e4a']; $porPartido = $detalles->contains(fn($d) => $d->esVotoPorPartido()); @endphp @if($detalles->isNotEmpty()) @foreach($detalles as $i => $d) @php $pct = $totalV > 0 ? round(($d->cantidad_votos / $totalV) * 100, 1) : 0; $pctBar = $maxV > 0 ? round(($d->cantidad_votos / $maxV) * 100) : 0; $partido = $d->partidoDelVoto(); $color = ($partido?->color && $partido->color !== '') ? $partido->color : $palette[$i % count($palette)]; $isFirst = $i === 0 && $d->cantidad_votos > 0; $trClass = $isFirst ? 'winner' : ($i % 2 === 1 ? 'odd' : ''); @endphp @endforeach
Ord. {{ $porPartido ? 'Organización política' : 'Candidato' }} {{ $porPartido ? 'Siglas' : 'Partido' }} Votos % Distribución
{{ $d->candidato?->numero_orden ?? ($i + 1) }} {{ $d->etiqueta() }} @if($isFirst) 1° LUGAR @endif {{ ($porPartido ? $partido?->siglas : $partido?->nombre) ?? '—' }} {{ number_format($d->cantidad_votos) }} {{ $pct }}% @if($pctBar > 0)@endif @if($pctBar < 100)@endif
@endif
{{-- fin body --}} {{-- ── PIE ── --}}
{{-- fin frame --}}