@if(!$election)

No active election found.

Create and activate an election to see live stats here.

@else

{{ $election->title }}

Status: {{ ucfirst($election->status) }} @if($election->isVotingOpen()) • Voting is OPEN@endif

Total Voters

{{ number_format($totalVoters) }}

Voted

{{ number_format($votedVoters) }}

Pending

{{ number_format($notVoted) }}

Turnout

{{ $turnout }}%

@foreach($positionStats as $position)

{{ $position['name'] }}

{{ $position['total'] }} votes
@foreach($position['candidates'] as $i => $candidate)
@if($i === 0 && $position['total'] > 0)★ @endif{{ $candidate['name'] }} {{ $candidate['votes'] }} ({{ $candidate['percentage'] }}%)
@endforeach
@endforeach @endif