# 🏆 PredictionLab — Sports Prediction Console & M-Pesa SMS Automation Platform
**PredictionLab** is an enterprise-grade, full-stack Sports Prediction Management System and automated M-Pesa SMS dispatch engine. Engineered for sports analytics platforms, tipster services, and subscription-based betting consoles, PredictionLab provides seamless prediction distribution, jackpot fixture management, instant payment reconciliation via Safaricom Daraja API, and dynamic automated SMS delivery to subscribers.
---
## 🌟 Key Modules & Feature Highlights
### âš˝ 1. Sports Prediction Console
* **Multi-Sport Management**: Full support for Football & Basketball match predictions with configurable odds, confidence scores, and league tagging.
* **Tiered Access Control**: Organize predictions by access tier (*Gold*, *Silver*, *Platinum*) and publishing status (*Published*, *Draft*).
* **Settlement Engine**: Real-time match outcome updates (Won, Lost, Void, Pending) with automatic record updates.
* **Persistent Data System**: Hardened non-volatile prediction engine — user-defined predictions remain permanent and are never overwritten by background re-seeding.
### 🏆 2. Jackpot Management System
* **Custom Jackpot Fixtures**: Complete management of Mega Jackpots, Midweek Jackpots, and daily jackpot pools.
* **Interactive Fixtures Order**: Order matches sequentially with home team, away team, predicted result, and scorelines.
* **Live Status Tracking**: Toggle jackpot states (*OPEN*, *CLOSED*, *SETTLED*) with real-time total odds calculation.
### đź’¬ 3. M-Pesa Automated SMS Dispatch Engine
* **Rule-Based Tier Automation**: Automatically matches customer payment amounts to specific prediction package rules (e.g., Daily Football ⚽, Jackpot Matches 🏆, Basketball Picks 🏀, Weekly & Monthly Subscriptions).
* **Dual Editor Modes**:
* **Table Builder**: Interactive match fixture grid supporting team home/away entries, pick selection, inline row additions, and quick deletion.
* **Raw Text Editor* …