{{-- Filters (Alpine.js auto-submits when a dropdown changes) --}}
{{-- Fallback button for users without JS --}}
{{-- Report Display Area --}} @if($report)
{{-- Main Report Content --}}

{{ __('Term Report Card') }}

{{ __('Published on') }} {{ $report->created_at ? $report->created_at->format('M d, Y') : __('Recently') }}

{{ __('Official') }}
{{-- Dynamic Report Data (Safely falling back if specific columns don't exist) --}}

{{ __('OPS Score') }}

{{ $report->ops_score ?? $report->overall_score ?? 'N/A' }}

{{ __('Attendance') }}

{{ $report->attendance_rate ?? 'N/A' }}%

{{ __('Rank') }}

{{ $report->rank ?? 'N/A' }}

{{ __('Status') }}

{{ ucfirst($report->status ?? 'Published') }}

@if(!empty($report->teacher_comment) || !empty($report->remarks))

🧑‍🏫 {{ __('Teacher Remarks') }}

"{{ $report->teacher_comment ?? $report->remarks }}"

@endif
{{-- Actions Sidebar --}}

{{ __('Download a secure PDF copy of your report card for your records.') }}

{{-- Note: Make sure the route name matches your actual web.php route for downloadPdf --}} {{ __('Download Official PDF') }}
@else {{-- Empty State if no report exists for the selected Year/Term --}}
@endif