@if($examScore && $examScore->count() > 0) @php($i=1) @foreach($examScore as $subject) @php($i++) @endforeach @endif
SN SUBJECT CODE SUBJECT TITLE FULL MARK PASS MARK OBTAINED MARK
TH PR TH PR TH PR
{{ $i }} {{ViewHelper::getSubjectCodeById($subject->subjects_id)}} {{ViewHelper::getSubjectById($subject->subjects_id)}} {{$subject->full_mark_theory?$subject->full_mark_theory:'-'}} {{$subject->full_mark_practical?$subject->full_mark_practical:'-'}} {{$subject->pass_mark_theory?$subject->pass_mark_theory:'-'}} {{$subject->pass_mark_practical?$subject->pass_mark_practical:'-'}} {{$subject->obtain_mark_theory?$subject->obtain_mark_theory:'-'}} {{$subject->obtain_mark_practical?$subject->obtain_mark_practical:'-'}}
TOTAL {{ $examScore->sum('full_mark_theory')?$examScore->sum('full_mark_theory'):'-'}} {{ $examScore->sum('full_mark_practical')?$examScore->sum('full_mark_practical'):'-'}} {{ $examScore->sum('pass_mark_theory')?$examScore->sum('pass_mark_theory'):'-'}} {{ $examScore->sum('pass_mark_practical')?$examScore->sum('pass_mark_practical'):'-'}} {{ $examScore->sum('obtain_mark_theory')?$examScore->sum('obtain_mark_theory'):'-'}} {{ $examScore->sum('obtain_mark_practical')?$examScore->sum('obtain_mark_practical'):'-'}}