# PrimeOne Performance & Intelligence Platform
**Version 1.0.0 (Gold Release)**

PrimeOne is a professional, high-end KPI management tool designed to transform raw task logs into objective performance data. Built for organizational transparency and efficiency, it combines advanced Laravel security with a multi-provider AI Orchestration engine.

---

## 🚀 Key Features

### 1. Unified Intelligence Hub (Analytics)
- **Role-Aware Dashboards:** Customized visibility from CEO to Intern.
- **Dynamic Filtering:** Filter data by Month, Year, Department, or Individual.
- **Engagement Health:** Real-time tracking of log compliance and submission velocity.
- **Department Benchmarking:** Comparative analysis of performance across various units.

### 2. Multi-Provider AI Orchestrator
- **Failover Logic:** Resilient evaluation using Groq, OpenAI, Claude, and Google.
- **Automatic Recovery:** Switches models or providers if rate limits or failures occur.
- **Encrypted Keys:** Industry-standard AES-256-GCM encryption for all AI credentials at rest.
- **Dual-Scoring AI:** Evaluates employee logs against self-scores for objective reporting.

### 3. High-Precision Performance Sheets
- **Ultra-Compact UI:** Designed to handle 50+ criteria seamlessly.
- **Dual Input System:** Synchronized high-precision sliders and numeric typing.
- **Real-time Autosave:** Background persistence ensures data is never lost.
- **Live Average Showcase:** Immediate visual feedback on current standing.

### 4. Smart Automation & Alerts
- **Browser Push Notifications:** Scheduled weekday and Saturday alerts for log submissions.
- **Automated Email Summaries:** Daily consolidated reports for management.
- **Timezone Sync:** Strictly follows Asia/Colombo (+0530) operational time.
- **Holiday Awareness:** Notifications are automatically suppressed on company holidays.

---

## 🛡 Security & Privacy
- **Encrypted Communications:** All user emails are stored as encrypted text with deterministic hashing for secure searchability.
- **Strict Access Control:** Direct supervisor validation for every evaluation action.
- **Audit Logging:** Every modification to a performance sheet is recorded with "Who, What, and When".
- **Instant Deactivation:** Middleware-level account blocking for immediate security enforcement.

---

## 🛠 Installation & Deployment
PrimeOne is designed for easy deployment in any environment, including those without terminal access.

### 1. Initial Setup
1. Upload the codebase to your server.
2. Point your domain to the `public/` directory.
3. Configure your `.env` with database and mail server details.

### 2. Web-Based Installer
Visit `https://your-domain.com/install` to access the Setup Wizard.
- Automated migrations.
- Automated role & permission seeding.
- Immediate Admin creation (**MACM** / **admin123**).

---

## 🏗 Organizational Hierarchy
The system follows a strict 6-tier hierarchy:
1. **Admin / Manager:** Full system control and global data visibility.
2. **Senior Team:** Broad visibility (all except upper management).
3. **HR:** Oversight of all personnel except upper management.
4. **Line Manager:** Can view and evaluate their direct reports.
5. **Employee:** Personal task logging and self-evaluation.

---

## 💾 Maintenance & Portability
- **Secure Backups:** Generate cryptographically signed ZIP archives of the entire system.
- **Signature Verification:** Backups can only be restored on systems sharing the same `APP_KEY`, preventing tampering.
- **Branding Manager:** Customize Logo, Favicon, and Theme Colors (Orange/Black) directly from the dashboard.

---
© {{ date('Y') }} PrimeOne Management System. Built for high-performance teams.
