{{-- FLASH MESSAGES --}} @if(session('success'))
{{ session('success') }}
@endif {{-- PAGE HEADER & FILTERS --}}

{{ __('Student Reports') }}

{{ __('View holistic academic reports and teacher remarks.') }}

{{-- FILTER FORM (Child + Term) --}}
{{-- CHILD SELECTOR --}}
{{-- TERM SELECTOR --}}
{{-- REPORTS LIST --}} @if($reports->isNotEmpty())
@foreach($reports as $report)
{{-- Card Header --}}
{{ strtoupper(substr($report->student->name ?? 'S', 0, 1)) }}

{{ $report->student->name }}

{{ $report->academicTerm->name ?? 'Current Term' }}

{{ $report->status ?? 'Draft' }} {{-- Download Button (If you have a route for PDF) --}} {{-- --}}
{{-- Card Body (Read Only Report Fields) --}}
{{-- Executive Summary --}} @if($report->executive_summary)

Executive Summary

{{ $report->executive_summary }}

@endif {{-- Academic Progress --}} @if($report->academic_progress)

Academic Progress & Engagement

{{ $report->academic_progress }}

@endif
{{-- Interventions --}} @if($report->interventions_notes)

Support Notes

{{ $report->interventions_notes }}

@endif {{-- Recommendations --}} @if($report->recommendations)

Recommendations

{{ $report->recommendations }}

@endif
{{-- Conclusion --}} @if($report->conclusion)

Teacher's Conclusion

"{{ $report->conclusion }}"

@endif
@endforeach
@else {{-- Empty State --}}
📄

No reports found

@if(!$selectedChildId) Please select a child to view their reports. @elseif(!$selectedTermId) Please select a term to view reports. @else No academic reports have been published for this term yet. @endif

@endif