{{-- Hero: School Health Score --}}
{{-- Animated glow background --}}

{{ __('SCHOOL HEALTH SCORE') }}

{{ $stats['health_score'] }}% {{ __('of optimal performance') }}

{{ __('Last analyzed: ') }} {{ now()->format('M d, Y H:i') }}

{{-- Circular Health Indicator --}}
{{ $stats['health_score'] }}%
{{-- Quick Stats --}}

{{ $stats['total_students'] }}

{{ __('Students') }}

{{ $stats['total_teachers'] }}

{{ __('Teachers') }}

{{ $stats['total_parents'] }}

{{ __('Parents') }}

{{ $stats['paid_rate'] }}%

{{ __('Payment Rate') }}

{{-- AI Insights Feed --}}
🧠

{{ __('AI-Generated Insights') }}

{{ count($insights) }} {{ __('active') }}
@foreach($insights as $insight)
{{ $insight['icon'] }}

{{ $insight['title'] }}

{{ $insight['description'] }}

🧠 {{ $insight['confidence'] }}% {{ __('Confidence') }} {{ $insight['action'] }} →
@endforeach
{{-- Next Best Actions --}}

{{ __('Next Best Actions') }}

@foreach($nextActions as $action) @php $priorityColors = [ 'critical' => 'from-red-500 to-red-600 border-red-200 dark:border-red-800', 'high' => 'from-amber-500 to-orange-600 border-amber-200 dark:border-amber-800', 'medium' => 'from-blue-500 to-blue-600 border-blue-200 dark:border-blue-800', ]; @endphp
{{ $action['icon'] }}

{{ $action['title'] }}

{{ $action['description'] }}

{{ ucfirst($action['priority']) }}

{{ $action['estimated_impact'] }}

@endforeach
{{-- Health Breakdown --}}
💰

{{ __('Financial Health') }}

{{ $stats['financial_health'] }}%

{{ $stats['paid_rate'] }}% invoice collection rate

📊

{{ __('Engagement Score') }}

{{ $stats['engagement_score'] }}%

{{ __('Parent & student interaction rate') }}

⚠️

{{ __('Risk Alerts') }}

{{ $stats['overdue_invoices'] }}

{{ $stats['overdue_invoices'] > 0 ? __('Overdue invoices requiring attention') : __('No critical risks detected') }}

@push('scripts') @endpush