@props(['term', 'termSubjects' => [], 'termSubjectWise' => [], 'class', 'subjects', 'termResult']) @php // Use termSubjects (key-based) if provided, otherwise fall back to termSubjectWise (3-char key based) $subjectData = !empty($termSubjects) ? $termSubjects : $termSubjectWise; @endphp @include('resultreports::reportsOutputBlades2526.components.subject-heading-row', [ 'class' => $class, 'term' => $term ]) @foreach($subjects as $subjectKey => $subjectName) @include('resultreports::reportsOutputBlades2526.components.subject-row', [ 'subjectKey' => $subjectKey, 'subjectData' => $subjectData[$subjectKey] ?? [], 'class' => $class, 'subjectName' => $subjectName ]) @endforeach
@if(!isset($hideTotalTable)) @include('resultreports::reportsOutputBlades2526.components.term-total-table', [ 'term' => $term, 'termResult' => $termResult ]) @endif