@extends('admin.layouts.app') @section('title','Elections') @section('page-title','Elections') @section('page-subtitle','Setup elections, positions, candidates and view results') @section('elections-active','active') @section('content') @if(session('success'))
No elections yet.
@endforelse {{ $elections->links() }}{{ $selectedElection->start_time?->format('M d, Y H:i') }} — {{ $selectedElection->end_time?->format('M d, Y H:i') }}
Eligible voters: {{ $selectedElection->eligibleVoters->count() }} · Voted: {{ $selectedElection->eligibleVoters->where('voting_status', 'voted')->count() }}
| Voter | Contact | Status | OTP | |
|---|---|---|---|---|
| {{ $voter->full_name }} {{ $voter->membership_number }} |
{{ $voter->email ?: $voter->user?->email ?: '—' }} {{ $voter->phone_number ?: $voter->user?->phone_number ?: '—' }} |
{{ str_replace('_', ' ', ucfirst($voter->voting_status)) }} | @if($voter->otp_locked_until && $voter->otp_locked_until->isFuture()) Locked @elseif($voter->otp_last_sent_at) Sent {{ $voter->otp_last_sent_at->diffForHumans() }} @else Not sent @endif | @if($voter->voting_status !== 'voted') @endif |