{{-- STUDENT SELECTION HEADER --}}
{{ $student ? strtoupper(substr($student->name, 0, 1)) : '👤' }}

{{ $student->name ?? 'Select Student' }}

{{ $student->schoolClass->name ?? 'Select a student to start' }}

{{-- SELECTOR --}}
{{-- THE REPORT FORM --}} {{-- Logic check: We show the form if a student is loaded AND we have a Term ID --}} @if($student && $selectedTermId)
@csrf
{{-- FLOATING ACTIONS --}}
Cancel
@else {{-- This shows if no student is selected or no term context exists --}}
✍️

Ready to start writing?

Select a student from the dropdown menu above.

@if(!$selectedTermId)

Note: You must select a Term on the previous page first.

@endif
@endif