@php $logo = setting('image_logo'); if(!empty($logo)): @endphp @php endif; @endphp

{{ setting('general_site_name') }}

{{__lang('student')}} {{__lang('report-card')}}

{{__lang('student')}} {{ $student->user->name }} {{ $student->user->last_name }}
{{__lang('session-course')}}: {{ $session->name }}

{{strtoupper(__lang('results'))}}

@foreach($tests as $test) @endforeach
{{__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

Total

@php $stats = $controller->getStudentTestsStats($student->id); @endphp
{{__lang('average-score')}}: {{ round($stats['average'],1) }}%
{{__lang('average-grade')}}: {{ $testGradeTable->getGrade($stats['average']) }}