ROCKVIEW UNIVERSITY SLPS — ELECTORAL COMMISSION PHASE 1

This package is based on the SLPS ZIP supplied in this conversation.

PHASE 1 DELIVERED
- Adds a dedicated Electoral Commission management route inside the existing SLPS staff interface.
- Uses the existing authenticated staff shell, navigation, theme variables and responsive layout.
- Creates and manages election records.
- Creates and manages election positions.
- Registers candidates against positions, including student number, programme, campus, biography, manifesto and optional photograph.
- Adds candidate approval/rejection workflow.
- Keeps election preparation status controls.
- Keeps Electoral Commission Data Collections as a separate menu/workspace.
- Disables the previous public registration and remote online voting API actions. The requested model is in-person voting under staff supervision at designated computer stations.

IMPORTANT DESIGN DECISION
Students will NOT vote through public links. Do not publish or distribute the old public election links. The in-room polling station workflow will be built in a later phase.

DEPLOYMENT
1. Back up the live SLPS files and database.
2. Upload the contents of the `slps` folder in this ZIP over the existing `/slps` directory, preserving the folder structure.
3. Ensure the existing migration `database/migrations/20261102_electoral_commission.sql` has been imported. If the existing Electoral Commission API already works in your live system, this migration is likely already installed; do not import it again blindly.
4. Sign in as a staff or administrator account.
5. Open Electoral Commission from the staff navigation.
6. Hard refresh with Ctrl+F5 if old styles or scripts remain cached.

NO NEW DATABASE MIGRATION
This phase uses the existing Electoral Commission tables. It does not alter ordinary Data Collections tables or records.

TEST PLAN
- Open Electoral Commission: an empty election library should appear if no election has been created.
- Create an election.
- Open it and add positions (for example President, Vice-President, Secretary and Treasurer).
- Register candidates under each position.
- Candidate records should initially be Pending; approve or reject after checking details.
- Confirm Electoral Data Collections remains a separate workspace.
- Confirm ordinary Data Collections remains unchanged.

SECURITY / WORKFLOW
- Staff/admin authentication is required for management.
- Public election information, public voter registration and remote ballot-casting API actions are disabled in this phase.
- Candidate images are uploaded through the authenticated staff API and validated for image type and size.
- This is Phase 1 only. Voter register, staff-operated polling stations, student verification at the station, secret ballot handling, duplicate-vote prevention and results reporting are planned for later phases.

VALIDATION
PHP syntax checks passed for the changed PHP files; Node syntax check passed for the Electoral Commission JavaScript. The package has not been deployed or tested against the live Bluehost/cPanel database.
