@php($hwTotalMark = 5) @php($cwTotalMark = 10) @php($colspanIncrease = 0) @if($exam->hw_mark =='a' and $exam->cw_mark=='a') @php($colspanIncrease = 4) @elseif($exam->hw_mark =='a' or $exam->cw_mark=='a') @php($colspanIncrease = 3) @endif @if($exam->hw_mark=='a')@endif @if($exam->cw_mark=='a')@endif @if($exam->hw_mark=='a' or $exam->cw_mark=='a') @endif @php($sl=1) @foreach($classSubjects as $classSubject) @php($status = subjectCheck($student->id,$data->class_id,$classSubject->subject_id)) @if($status===true) @php($components = papers($exam->id, $classSubject->subject_id)) @php($totalMarkObtained = 0) @php($totalMark = count($components)>0? $components->sum('mark') : 1) @php($hwMark = 0) @php($cwMark = 0) @php($topScore = 0) @php($average = 0) @php($topScore = topScore($exam->id,$classSubject->subject_id)) @php($topAverage = avearge($topScore,$totalMark)) @foreach($components as $component) @php($data->paper_id = $component->id) @php($data->subject_id = $classSubject->subject_id) @php($result = resultCheck($data,$student->id)) @php($totalMarkObtained += isset($result)? $result->mark : 0 ) @endforeach @php($average = avearge($totalMarkObtained,$totalMark)) @if($exam->hw_mark=='a')@endif @if($exam->cw_mark=='a')@endif @if($exam->hw_mark=='a' or $exam->cw_mark=='a') @endif {{-- @php($studentTotalMark += $totalMarkObtained)--}} @endif @endforeach {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Subject Wise Performance
Sl. Subject Name & CodeHW
({{ $hwTotalMark }})
CW
({{ $cwTotalMark }})
Exam Out OfTotal
Score
Out Of Highest
Score
Average
(%)
Grade
{{ $sl++ }} {{ $classSubject->sub_code }} : {{ $classSubject->subject->name }}{{ $hwMark = autoMark($average,$hwTotalMark) }}{{ $cwMark = autoMark($average,$cwTotalMark) }}{{ numberFormat($totalMarkObtained) }} {{ $totalMark }} @if($exam->hw_mark=='a' or $exam->cw_mark=='a') {{ $totalMarkObtained = ($totalMarkObtained + $hwMark + $cwMark) }} @else {{ numberFormat($totalMarkObtained) }} @endif @if($exam->hw_mark=='a' or $exam->cw_mark=='a') {{ $totalMark = ($totalMark + $hwTotalMark + $cwTotalMark) }} @else {{ numberFormat($totalMark) }} @endif @if($exam->hw_mark=='a' or $exam->cw_mark=='a') @php($topHW = autoMark($topAverage,$hwTotalMark)) @php($topCW = autoMark($topAverage,$cwTotalMark)) {{ $topScore = ($topScore + $topHW + $topCW) }} @else {{ $topScore }} @endif @if($exam->hw_mark=='a' or $exam->cw_mark=='a') {{ $average = avearge($totalMarkObtained,$totalMark) }} @else {{ $average }} @endif {{ grade($average) }}
Combined Result{{ numberFormat($studentTotalMark,2) }}{{ $average = avearge($studentTotalMark,$examTotalMark,2) }}{{ grade($average) }}