v1.0 Dashboard Public Profile GitHub
✅ 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

URLDescription
GET /analyticsMain analytics dashboard
GET /analytics?range=7dLast 7 days
GET /analytics?range=30dLast 30 days
GET /analytics?range=this_monthThis calendar month
GET /analytics?range=last_monthPrevious calendar month
GET /analytics?range=yearLast 12 months
GET /super-admin/analyticsPlatform-wide analytics (Super Admin only)

Key Files

TypePath
Controllerapp/Http/Controllers/AnalyticsController.php
Viewresources/views/analytics/index.blade.php

Dashboard Sections

KPI Cards (with period comparison)

KPIWhat It Shows
Total CallsCalls in period + % change vs prior period
Total AppointmentsBookings in period + % change
New CustomersFirst-time callers in period + % change
Missed CallsUnanswered 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)