Check_Auth(); if ($_SESSION['Access_Level'] < 1) { header('Location: Voting_Screen.php'); exit; } // Fetch Stats $db = db(); $totalVoters = $db->query("SELECT COUNT(*) FROM Voters")->fetchColumn(); $totalCandidates = $db->query("SELECT COUNT(*) FROM Candidates")->fetchColumn(); $totalVotes = $db->query("SELECT COUNT(*) FROM Voters WHERE Has_Voted = 1")->fetchColumn(); // Fetch Active Elections $activeElections = $db->query("SELECT * FROM Election_History WHERE Status = 'Active' ORDER BY Start_Date DESC")->fetchAll(); ?> Election Dashboard | Online School Election System

Election Dashboard

Welcome back! Here's what's happening with the current elections.

Total Voters
Registered Students
Total Candidates
Running for Office
Total Votes Cast
Verified Ballots

Active Elections

Election Title Start Date End Date Status Actions
No active elections found. Create one now.
School Year Election Active