@extends('layouts.school') @section('title', 'Score Entry') @section('header', 'Score Entry') @section('content')
@if($classId)
@endif
@if($students->count() && $types->count())
@csrf
@foreach($types as $type) @endforeach @foreach($students as $student) @foreach($types as $type) @php $existingScore = $existing->get("{$student->id}_{$type->id}"); @endphp @endforeach @endforeach
Student{{ $type->name }}max {{ $type->max_score }} · {{ $type->weight }}%
{{ $student->full_name }}{{ $student->admission_no }} id}.{$type->id}", $existingScore?->score) }}" min="0" max="{{ $type->max_score }}" step="0.01" class="w-20 rounded-lg border border-gray-300 px-2 py-1.5 text-sm shadow-sm focus:border-primary-500 focus:outline-none focus:ring-1 focus:ring-primary-500">
@elseif($classId && $subjectId && $termId && !$types->count())
No assessment types configured. Configure assessments first.
@endif @endsection