{{ setting('application_name') }}

{{ setting('address') }}

{{___('common.Name')}}: {{ @$data['student']->first_name }} {{ @$data['student']->last_name }} {{___('common.Class(Section)')}}: {{ @$data['student']->session_class_student->class->name }} ({{ @$data['student']->session_class_student->section->name }}), {{___('common.Roll No')}} : {{@$data['student']->session_class_student->roll}}

@foreach (@$data['exams'] as $item) @endforeach @foreach (@$data['subjects'] as $item) @foreach (@$data['exams'] as $key=>$exam) @endforeach @endforeach
{{___('common.Subject Code')}} {{___('common.Subject Name')}}{{$item->exam_type->name}} {{___('common.(Mark-Grade)')}}
{{ $item->subject->code }} {{ $item->subject->name }} @foreach ($data['marks_registers'][$key] as $result) @if ($result->subject_id == $item->subject->id) @php $n = 0; @endphp @foreach ($result->marksRegisterChilds as $mark) @php $n += $mark->mark; @endphp @endforeach {{$n}} - {{ markGrade($n) }} @endif @endforeach

{{___('common.Results')}}

@foreach ($data['exams'] as $key=>$item) @endforeach
{{___('common.Exam Name')}} {{___('common.Result')}} {{___('common.GPA')}} {{___('common.Total Marks')}} {{___('common.Avg. Marks')}} {{___('common.Avg. Grade')}}
{{ $item->exam_type->name }} {{ $data['result'][$key] }} {{ $data['result'][$key] == 'Failed' ? '0.00' : $data['gpa'][$key] }} {{ $data['total_marks'][$key] }} {{ substr($data['avg_marks'][$key],0,5) }} {{ $data['result'][$key] == 'Failed' ? 'F' : markGrade((int)$data['avg_marks'][$key]) }}