{{-- HEADER + GLOBAL CREATE BUTTON --}}

Academic Reports

Write and publish holistic end-of-term reports for your students.

WRITE NEW REPORT
{{-- KPIs --}} @php $total = count($students ?? []); $published = collect($students ?? [])->filter(fn($s) => $s->academicReports->where('status', 'published')->first())->count(); $drafts = collect($students ?? [])->filter(fn($s) => $s->academicReports->where('status', 'draft')->first())->count(); @endphp

Total Students

{{ $total }}

Drafts

{{ $drafts }}

Published

{{ $published }}

{{-- FILTERS --}}
{{-- STUDENT TABLE --}} @if($selectedTermId && $selectedClassId)
@foreach($students as $student) @php $report = $student->academicReports->first(); @endphp @endforeach
Student Report Status Action
{{ strtoupper(substr($student->name, 0, 1)) }}

{{ $student->name }}

{{ $student->schoolClass->name ?? '—' }}

@if($report) {{ ucfirst($report->status) }} @else Not Started @endif @if($report) ✏️ Edit Report @else ✍️ Write Report @endif
@else @endif