Election workspace / Overview

Election Operations

Build and manage the official election geography for your monitoring system.

AD
@if (session('success'))
{{ session('success') }}
@endif
PHASE 1 · ELECTION FOUNDATION

Start with trusted master data.

Set up the election and Kenya’s geographic hierarchy before adding campaigns, agents and results.

@foreach ([['Elections', $elections->count(), '◷'], ['Counties', $countyCount, '⌖'], ['Constituencies', $constituencyCount, '▤'], ['Wards', $wardCount, '◫'], ['Registration centres', $centreCount, '⌂'], ['Polling stations', $stationCount, '▦']] as [$label, $count, $icon])
{{ $icon }}
{{ number_format($count) }}
{{ $label }}
@endforeach

Elections

Election cycles configured in this workspace.

@forelse ($elections as $election)
◷
{{ $election->name }}
{{ $election->year }} general election @if ($election->election_date) · {{ $election->election_date->format('d M Y') }} @else · Date pending @endif
{{ $election->status }}
@empty
No elections configured yet

Add an election cycle to begin.

@endforelse

Foundation checklist

Recommended order for building electoral master data.

@foreach ([['01', 'Create election cycle', 'Define the election year and scheduled date.', 'Complete'], ['02', 'Load counties', 'Use official codes as stable identifiers.', $countyCount ? number_format($countyCount) . ' added' : 'Next'], ['03', 'Add constituencies & wards', 'Link each area to its parent geography.', 'Waiting'], ['04', 'Register centres & stations', 'Capture streams, station codes and voters.', 'Waiting']] as [$number, $title, $hint, $state])
{{ $number }}
{{ $title }}
{{ $state }}

{{ $hint }}

@endforeach

County master list

Official county names and codes used throughout the election hierarchy.

Showing {{ number_format($counties->total()) }} of {{ number_format($countyCount) }} counties
@forelse($counties as $county) @empty @endforelse
Added
{{ $county->code }} {{ $county->name }} {{ $county->constituencies_count }} {{ $county->created_at->format('d M Y') }}
{{ $countySearch ? 'No counties match this search' : 'Your county list is ready to build' }}

Add counties with their official codes or import the IEBC dataset in a later pass.

{{ $counties->links() }}

Geographic hierarchy

Add each area under its official parent to keep station data connected.

@foreach (['constituencies' => 'Constituencies', 'wards' => 'Wards', 'centres' => 'Registration centres', 'stations' => 'Polling stations'] as $key => $label) @endforeach
{{ number_format($records->total()) }} records
@if ($geographyLevel === 'stations') @else @endif @forelse($records as $record) @if ($geographyLevel === 'stations') @else @endif @empty @endforelse
Parent areaElection Stream / votersChild records
{{ $record->code }} {{ $record->name }} @if ($geographyLevel === 'constituencies') {{ $record->county->name }} @elseif($geographyLevel === 'wards') {{ $record->constituency->county->name }} · {{ $record->constituency->name }} @elseif($geographyLevel === 'centres') {{ $record->ward->constituency->name }} · {{ $record->ward->name }}@else{{ $record->registrationCentre->ward->constituency->name }} · {{ $record->registrationCentre->name }} @endif {{ $record->election->name }} {{ $record->stream_number }} · {{ number_format($record->registered_voters) }} {{ number_format(match ($geographyLevel) {'constituencies' => $record->wards_count,'wards' => $record->registration_centres_count,default => $record->polling_stations_count}) }}
No records in this level yet. Add the first one when its parent geography is available.
{{ $records->links() }}
Election master data · Phase 1
@if ($modal)

{{ $modal === 'election' ? 'Add election cycle' : ($modal === 'county' ? 'Add county' : 'Add ' . $geographyLevel) }}

{{ $modal === 'election' ? 'Set up an election for this workspace.' : ($modal === 'county' ? 'Enter the official county code and name.' : 'Add a record with its official parent and code.') }}

@if ($modal === 'election')
@elseif($modal === 'county') @else @php($parentLabel = ['constituencies' => 'County', 'wards' => 'Constituency', 'centres' => 'Ward', 'stations' => 'Registration centre'][$geographyLevel]) @if ($geographyLevel === 'stations') @endif
@if ($geographyLevel === 'stations')
@endif @endif
@endif