@extends('layouts.teacher-portal') @section('title', 'Enter Marks') @section('header', 'Enter Marks') @section('content')
@if (!$subject)

No subjects are assigned to you yet.

@else @if ($existing->isNotEmpty() && !$canEdit)
Scores for this sheet have already been submitted. Editing is locked by your administrator.
@endif
@csrf
@foreach ($types as $type) @endforeach @forelse ($students as $i => $student) @foreach ($types as $type) @php($saved = $existing->get($student->id . '_' . $type->id)) @endforeach @empty @endforelse
Student{{ $type->name }} (max {{ $type->max_score }})
{{ $i + 1 }}

{{ $student->full_name }}

{{ $student->admission_no }}

isNotEmpty() && !$canEdit) ? 'disabled' : '' }} class="w-24 rounded-lg border border-slate-300 px-2 py-1.5 text-sm focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500">
No active students in this class.
@if (!($existing->isNotEmpty() && !$canEdit) && $students->isNotEmpty()) @endif
@endif @endsection