{{__lang('student')}} | {{ $student->user->name }} {{ $student->user->last_name }} |
{{__lang('session-course')}}: | {{ $session->name }} |
{{__lang('test')}} | {{__lang('passmark')}} | {{__lang('score')}} | {{__lang('grade')}} | {{__lang('status')}} |
---|---|---|---|---|
{{ $test->name }} | {{ $test->passmark }}% | @php $result =$test->studentTests()->where('student_id',$student->id)->orderBy('score','desc')->first() @endphp @if($result) {{ round($result->score,1) }}% @endif | @if($result) {{ $testGradeTable->getGrade($result->score) }} @endif | @if($result && $result->score >= $test->passmark) {{__lang('passed')}} @else {{__lang('failed')}} @endif |
{{__lang('average-score')}}: | {{ round($stats['average'],1) }}% |
{{__lang('average-grade')}}: | {{ $testGradeTable->getGrade($stats['average']) }} |