@php $total = 0; @endphp @foreach($khataFindData as $sub => $subInfo)
@foreach($subInfo as $index => $eInfo) @php $mark = " ".$eInfo->marks_obtained." "; $ch_mark = " / 000"; $opacity = 0; if ($eInfo->marks_obtained_head_examiner && $eInfo->marks_obtained_head_examiner != " " && $eInfo->marks_obtained_head_examiner != $eInfo->marks_obtained) { $ch_mark = "/ ".$eInfo->marks_obtained_head_examiner; $opacity = 1; } $changed_mark = 0; if (is_numeric($eInfo->marks_obtained_head_examiner)) { $changed_mark = $eInfo->rescrutinized_marks_obtained - $eInfo->marks_obtained_head_examiner; } else { $changed_mark = $eInfo->rescrutinized_marks_obtained - $eInfo->marks_obtained; } @endphp @php $total++; @endphp @endforeach
Subject: {{ $sub }}
H.C. EX. CODE Serial No. Marks Marks Obtained Change Remarks
{{ $eInfo->head_examineer_code }} {{ $eInfo->examiner_code }} {{$eInfo->sequence_no}} {{$mark}} {!!$ch_mark!!} {{$withMarks === 'true' ? $eInfo->rescrutinized_marks_obtained : ""}} {{$withMarks === 'true' ? $changed_mark : ""}}
@endforeach

GRAND TOTAL: {{$total}}