@php $tenant = \App\Support\Facades\Tenancy::get(); $brandStyle = $tenant->brand_primary_color ? ":root { --color-brand-600: {$tenant->brand_primary_color}; } .dark { --color-brand-600: {$tenant->brand_primary_color}; }" : null; $navGroups = \App\Support\Navigation\TeacherNav::groups('mark-entry'); $components = $leafComponents ?? collect(); @endphp @if($components->isNotEmpty())

Mark structure for this class/subject: @foreach($distribution->components as $topLevel) @if($topLevel->children->isNotEmpty()) {{ $topLevel->name }}: {{ $topLevel->max_marks }} ({{ $topLevel->children->pluck('name')->join(', ') }}) @else {{ $topLevel->name }}: {{ $topLevel->max_marks }} @endif @endforeach

@if($components->contains(fn ($c) => $c->isAutoSourced()))

Components marked Auto are pre-filled from existing attendance/homework/assignment records and can still be adjusted before saving.

@endif @endif
@csrf
@if($schedule->exam->is_online) @endif @if($components->isEmpty()) @else @foreach($components as $component) @endforeach @endif @forelse($registrations as $registration) @php $entry = $entries->get($registration->student_id); $attempt = $attempts->get($registration->student_id); $entryComponents = $entry?->components->keyBy('mark_distribution_component_id') ?? collect(); $prefills = $components->mapWithKeys(fn ($component) => [ $component->id => $entryComponents->get($component->id)?->marks_obtained ?? $suggested->get("{$registration->student_id}.{$component->id}"), ]); @endphp @if($schedule->exam->is_online) @endif @if($components->isEmpty()) @else @foreach($components as $component) @endforeach @endif @empty @endforelse
StudentAuto Score Essay AnswersMarks Obtained {{ $component->name }} (max {{ $component->max_marks }}) @if($component->pass_marks !== null) (pass {{ $component->pass_marks }}) @endif @if($component->isAutoSourced()) @endif Total (max {{ $schedule->full_marks }}) (pass {{ $schedule->pass_marks }})Absent
{{ $registration->student->fullName() }}{{ $attempt?->auto_score ?? '—' }} @if($attempt?->answers) @foreach($schedule->examQuestions()->with('question')->get()->where('question.type', 'essay') as $eq)
{{ \Illuminate\Support\Str::limit($eq->question->body, 30) }}: {{ \Illuminate\Support\Str::limit($attempt->answers[$eq->question_id] ?? '—', 60) }}
@endforeach @endif
{{-- readonly, not disabled — see the admin mark-entry view for why. --}}

Max {{ $component->max_marks }}

—
No students registered for this sitting.
@if($components->isNotEmpty())

Each component is capped at its configured maximum; the total is summed automatically.

@endif