SN | SUBJECT CODE | SUBJECT TITLE | FULL MARK | PASS MARK | OBTAINED MARK | TOTAL | REMARK | |||
---|---|---|---|---|---|---|---|---|---|---|
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->th_remark:'-'}} | {{$subject->obtain_mark_practical?$subject->obtain_mark_practical.$subject->pr_remark:'-'}} | {{$subject->total_obtain_mark?$subject->total_obtain_mark:'-'}} | {{$subject->remark?$subject->remark:''}} | TOTAL | {{$examScore->sum('total_obtain_mark')?$examScore->sum('total_obtain_mark'):'-'}} |
@php($fullMark = $examScore->sum('full_mark_theory')+$examScore->sum('full_mark_practical'))
@php($totalMark = $examScore->sum('total_obtain_mark'))
@php($percent = ($totalMark * 100)/$fullMark)
{{ number_format((float)$percent, 2, '.', '').'%' }}
@php($remark = $examScore->pluck('remark')->toArray())
@php($pr_remark = $examScore->pluck('pr_remark')->toArray())
@if(in_array('*',$remark) || in_array('*',$pr_remark))
[Fail]
@else
[Pass]
Rank: {{ ViewHelper::getStudentRankingInExam($examScore[0]->years_id, $examScore[0]->months_id, $examScore[0]->exams_id,$examScore[0]->faculty_id, $examScore[0]->semesters_id, $data['student']->id) }} @endif Position : {{ ViewHelper::getStudentPositionInExam($examScore[0]->years_id, $examScore[0]->months_id, $examScore[0]->exams_id,$examScore[0]->faculty_id, $examScore[0]->semesters_id, $data['student']->id) }} |