@extends('hms.layout') @section('title','Analysis & insights') @section('content')
Detailed reporting

Analysis & insights

Explore historical trends, distributions and patterns within your permitted scope.

My dashboard →
@if($organizations->isEmpty())
Your account is not assigned to an organisation.
@elseif(!$role)
Select an organisation to view its analytics.
@else
Last 30 days

{{ $from->format('d M Y') }} – {{ $to->format('d M Y') }} · Organisation and facility permissions apply. Physician visit and clinical charts show their own patients. Snapshot charts are labelled separately.

@if(!empty($analytics['summary']))
@foreach($analytics['summary'] as $label=>$value)
{{ $label }}
{{ number_format($value) }}
@endforeach
@endif @if($chartGroups->isNotEmpty()) @foreach($chartGroups as $groupName=>$charts)

{{ $groupName }}

@foreach($charts as $chart) @include('hms.partials.analytics-chart',['chart'=>$chart]) @endforeach
@endforeach @else
No detailed analysis is available for this role yet.
@endif

Use “View exact figures” on each chart for its underlying values. Current snapshots are identified in their notes and do not change with the date range. For pending tasks and your schedule, use the dashboard.

@endif @endsection