## TODO - instructor/analytics.php live analytics

- [x] Identify all mock/hardcoded values in `instructor/analytics.php` (rand/Math.random/fixed numbers)

- [x] Replace blog/posts-based queries with instructor course analytics queries

- [x] Compute: course stats, enrollment stats, completion rate, avg progress, active this week, avg completion time (best available)

- [x] Fetch recent approved reviews with real ratings/text

- [x] Replace Chart.js datasets to use real computed data (no random)

- [x] Replace detailed analytics table metrics to use computed live metrics (no random)

- [x] Sanity check for missing columns/tables; add safe fallbacks (0 / N/A)

- [x] Confirm page renders without errors


