@extends('layouts.teacher-portal') @section('title', 'Teacher Comments') @section('header', 'Teacher Comments') @section('content') @if ($myClasses->isEmpty())

Only class teachers can enter result comments.

@else
@if ($students->isEmpty())

No students found for this selection.

Note: remark sheets are created when the administrator generates/publishes results.

@else
@csrf
@foreach ($students as $student) @php($sheet = $sheets->get($student->id))

{{ $student->full_name }}

{{ $student->admission_no }} @if ($sheet && $sheet->status === 'published') Published sheet @elseif (!$sheet) No sheet yet — cannot save @endif
@endforeach
@endif @endif @endsection