{{-- HEADER & FILTERS CONTROL PANEL --}}
{{-- Top Header Section --}}
{{-- Student Initial Avatar --}}

{{ $student->name ?? __('Student OPS') }}

{{ __('Operational Performance Score & Reputation Tracking') }}

{{-- Filter Bar Section --}}
{{-- Using direct URL in action as a fail-safe --}}
{{-- 1. CHILD SELECTOR --}}

{{ __('Student ID:') }} {{ $student->student_id_number ?? 'N/A' }}

{{-- KPI SUMMARY CARDS --}}
{{ __('Overall Score') }}
{{ round($opsScore ?? 0) }}%
{{ __('Attendance') }}
{{ round($breakdown['attendance'] ?? 0) }}%
{{ __('Academic') }}
{{ round($breakdown['academic'] ?? 0) }}%
{{ __('Engagement') }}
{{ round($breakdown['engagement'] ?? 0) }}%
{{-- MAIN CONTENT --}}
{{-- Circular Gauge Card --}}

{{ __('OPS Reputation Index') }}

{{ round($opsScore ?? 0) }}%

{{ __('Ranking Level') }}

@if($opsScore >= 80) {{ __('High Performance') }} @elseif($opsScore >= 60) {{ __('Good Standing') }} @else {{ __('Needs Focus') }} @endif

{{-- Tier & Detailed Breakdown --}}
{{-- Tier Card --}}

{{ __('Reward Tier Ranking') }}

@php $tierStyle = match(strtolower($tier ?? 'bronze')) { 'gold' => 'from-yellow-400 to-amber-500 text-white shadow-yellow-100', 'silver' => 'from-slate-300 to-slate-400 text-slate-800 shadow-slate-100', 'bronze' => 'from-orange-400 to-red-400 text-white shadow-orange-100', default => 'from-indigo-400 to-purple-500 text-white shadow-indigo-100', }; @endphp
🏆 {{ ucfirst($tier ?? 'Bronze') }}

{{ __('Your child\'s current tier rank is calculated based on their overall reputation score across all academic categories.') }}

{{-- Progress Breakdown --}}
@foreach([ ['label' => __('Attendance & Punctuality'), 'value' => $breakdown['attendance'], 'color' => 'bg-emerald-500'], ['label' => __('Academic Performance'), 'value' => $breakdown['academic'], 'color' => 'bg-blue-500'], ['label' => __('Classroom Engagement'), 'value' => $breakdown['engagement'], 'color' => 'bg-purple-500'], ] as $metric)
{{ $metric['label'] }} {{ round($metric['value']) }}%
@endforeach