@extends('backend.master') @section('title') {{ ___('common.Online Class Routine 2023') }} @endsection @section('content')
{{-- bradecrumb Area S t a r t --}} {{-- bradecrumb Area E n d --}}
@csrf

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

@error('class')
{{ $message }}
@enderror
@error('section')
{{ $message }}
@enderror
@error('student')
{{ $message }}
@enderror
@if (@$data['marks_registers'])
{{___('common.Pdf Preview')}}

{{___('common.Progress Card Report')}}

{{___('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}}

{{___('report.Grade Sheet')}}
@foreach (@$data['exams'] as $item) @endforeach @foreach (@$data['subjects'] as $item) @foreach (@$data['exams'] as $key=>$exam) @endforeach @endforeach
{{___('report.Subject Code')}} {{___('report.Subject Name')}}{{$item->exam_type->name}} {{___('report.(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
@foreach ($data['exams'] as $key=>$item) @endforeach
{{___('report.Exam Name')}} {{___('report.Result')}} {{___('report.GPA')}} {{___('report.Total Marks')}} {{___('report.Avg Marks')}} {{___('report.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]) }}
@endif
@endsection