@extends('layouts.admin') @section('page_kicker', 'Analytics') @section('page_title', 'Reports & analytics') @section('content')

Total patients

{{ $patientCount }}

Total revenue

${{ number_format((float) $revenueTotal, 2) }}

Top doctor entries

{{ $doctorPerf->count() }}

Doctor performance

Appointment volume by provider.

Appointment trends

Daily booking volume.

@php($max = max(1, (int) $appointmentTrend->max('total')))
@foreach($appointmentTrend as $point)
{{ $point->day }} {{ $point->total }}
@endforeach
@can('reports.hospital.export')

Export reports (CSV)

Download operational datasets.

Export patients Export appointments Export revenue
@endcan @endsection