@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; $sourceOptions = ['manual' => 'Manual', 'attendance' => 'Auto: Attendance', 'homework' => 'Auto: Homework', 'assignment' => 'Auto: Assignment']; @endphp
All Classes @foreach($classes as $class) {{ $class->name }} @endforeach
@forelse($distributions as $distribution) @empty @endforelse
# Class Subject Exam Components Total Marks Pass Marks
{{ $loop->iteration }} {{ $distribution->schoolClass->name }} {{ $distribution->subject->name }} @if($distribution->exam) {{ $distribution->exam->name }} @else Default (all exams) @endif
@foreach($distribution->components as $component) @if($component->children->isNotEmpty()) {{ $component->name }}: {{ $component->max_marks }}{{ $component->pass_marks !== null ? ' (pass '.$component->pass_marks.')' : '' }} ({{ $component->children->count() }} sub) @else {{ $component->name }}: {{ $component->max_marks }}{{ $component->pass_marks !== null ? ' (pass '.$component->pass_marks.')' : '' }} @if($component->isAutoSourced())@endif @endif @endforeach
{{ $distribution->totalMarks() }} {{ $distribution->pass_marks !== null ? $distribution->pass_marks : '—' }}
{{ $selectedClassId ? 'No mark distributions configured for this class yet.' : 'No mark distributions configured yet.' }}
@csrf

No subjects found for this class — add course offerings first.

Leave as Default to use the same split everywhere, or pick one exam to give it its own weighting.

Optional. If set, this replaces the Pass Marks field on any Exam Schedule using this distribution — no need to re-enter it there.

Total: marks. Auto-sourced components pre-fill from existing attendance/homework/assignment data at mark-entry time and stay editable.

"Pass marks" per component is optional. If set on any component, a student must clear that component on its own — failing even a small 5-mark sub-component fails the whole subject, regardless of the overall total.

{{-- Same look as x-ui.confirm-dialog, but confirms a client-side removal from the form above (nothing to submit) instead of a form's DELETE request — kept on its own confirmingRemoval flag so it can stack on top of the "form" modal without hiding it. --}}

Remove this component?

will be removed from this form. Nothing is saved until you click Create/Save Distribution.