{{$title ?? ''}}

Total obtainable marks in each subject: {{$totalMarksAttainableInEachSubject}}

Total Marks attainable across all subjects: {{$totalMarksAttainableInEachSubject * $subjects->count()}}

@php $heads = $subjects->pluck('name'); @endphp {{--foreach displaus records in order of class positions--}}
@foreach ($heads as $head) @endforeach @foreach ($tabulatedRecords->sortByDesc('total') as $tabulatedRecord) @foreach ($tabulatedRecord['student_marks'] as $item) @endforeach @endforeach
Class Position Name Admission Number{{$head}}Total Marks Percentage (%) Grade
{{$loop->iteration}} {{$tabulatedRecord['student_name']}} {{$tabulatedRecord['admission_number']}}{{$item}}{{$tabulatedRecord['total']}} {{$tabulatedRecord['percent']}} {{$tabulatedRecord['grade']}}