Election Results — {{ $election->title }}

Generated: {{ now()->format('d M Y H:i') }}  |  Status: {{ ucfirst($election->status) }}

{{ number_format($totalVoters) }}
Registered Voters
{{ number_format($votedVoters) }}
Votes Cast
{{ $turnout }}%
Turnout
{{ $positions->count() }}
Positions
@foreach($positions as $position)
{{ $position->name }} — {{ $position->votes_count }} total votes
@foreach($position->candidates as $i => $candidate) @php $pct = $position->votes_count > 0 ? round(($candidate->votes_count / $position->votes_count) * 100, 1) : 0; @endphp @endforeach
# Candidate Votes % Progress Result
{{ $i + 1 }} {{ $candidate->name }} {{ $candidate->votes_count }} {{ $pct }}%
{{ $i === 0 && $position->votes_count > 0 ? '★ WINNER' : '' }}
@endforeach