✅ Complete
Phase 6
Phase 6 — Analytics Dashboard
Comprehensive business intelligence — KPI cards, charts, heatmaps, staff efficiency, churn risk, repeat booking rate, top services, and holiday impact analysis.
What It Does
The analytics dashboard gives business owners a complete picture of their performance. All charts support date range filters and compare against the previous period automatically. Super Admins have a separate platform-wide analytics view across all tenants.
Key Routes
| URL | Description |
GET /analytics | Main analytics dashboard |
GET /analytics?range=7d | Last 7 days |
GET /analytics?range=30d | Last 30 days |
GET /analytics?range=this_month | This calendar month |
GET /analytics?range=last_month | Previous calendar month |
GET /analytics?range=year | Last 12 months |
GET /super-admin/analytics | Platform-wide analytics (Super Admin only) |
Key Files
| Type | Path |
| Controller | app/Http/Controllers/AnalyticsController.php |
| View | resources/views/analytics/index.blade.php |
Dashboard Sections
KPI Cards (with period comparison)
| KPI | What It Shows |
| Total Calls | Calls in period + % change vs prior period |
| Total Appointments | Bookings in period + % change |
| New Customers | First-time callers in period + % change |
| Missed Calls | Unanswered calls + % change |
| Answer Rate | % of calls answered by AI |
| Call-to-Booking Rate | % of calls that resulted in an appointment |
Charts
- Calls + Appointments over time — dual-line daily chart
- Peak hours heatmap — hour × day-of-week grid showing call volume
- Channel distribution — pie chart of messaging channels
- Appointment status breakdown — pie chart (scheduled/completed/cancelled/no-show)
- Top services — bar chart of most booked services in the period
- Appointment source distribution — how bookings came in (call, walk-in, API, manual)
Tables
- Staff efficiency — total appointments / completed / cancelled per staff member
- Missed leads list — missed calls that never booked an appointment
- Top customers — by appointment volume in the period
- Holiday impact — calls + bookings on each closed day, "Still active" flag
Retention Insights
- Repeat booking rate — % of customers who return (circular progress + advice)
- Churn risk list — customers not seen in 60+ days, colour-coded by severity, with Re-engage CTA
What's Complete
- All KPI cards with previous period comparison and % change indicators
- Daily line chart for calls and appointments
- Peak hours heatmap
- Channel distribution chart
- Appointment status breakdown
- Staff efficiency table
- Missed leads list with caller details
- Top customers table
- Appointment source distribution
- Date range filters (5 presets)
- Repeat booking rate with circular progress indicator
- Churn risk list with severity colour coding and Re-engage CTA
- Top services bar chart
- Holiday impact table
- Super Admin platform-wide analytics dashboard
What's Deferred
- Custom date range picker (currently only presets)
- Export analytics to CSV or PDF
- Revenue analytics (requires billing data fully wired)
- Predictive analytics (AI-powered forecasting)