@php use App\Http\Controllers\eims\enums\AcademicExamResultBehaviorStatus;use App\Http\Controllers\eims\enums\AcademicExamResultCoCurricularActivityStatus;use App\Service\EimsService; @endphp @extends('layouts/eims_layout') @section('title', '| ' . $pageTitle) @section('content') @include('successMsg')
@if(is_null($company->image))
@else image") }}" style="width:100px;height: 100px;" alt="{{ $company->name }}"> @endif

{{$company->name}}

@if(!empty($company->address))

{{$company->address}}

@endif

{{ $company->phone ? "Phone: $company->phone" : null }} {{$company->telephone ? ', Telephone: ' . $company->telephone : null}}

@if(!empty($company->email))

Email: {{$company->email}}

@endif @if(!empty($company->website))

Website: {{$company->website}}

@endif

Mark Sheet - {{$student->session_name}}

Student Id {{ $student->student_id_no ?? null }}
Class Roll {{ $student->roll_no ?? null }}
Name {{ $student->name ?? null }}
Class {{ $student->semester_class_name ?? null }}
Section {{ $student->section_name ?? null }}
Group {{ $student->semester_class_group_name ?? null }}
@foreach($grades as $grade) @endforeach
Marks Interval Letter Grade Grade Point Grade Assessment
{{ $grade->min_number }} - {{ $grade->max_number }} {{ $grade->name }} {{ $grade->grade_point }} {{ $grade->grade_assessment }}
@foreach($studentAcademicExamResults as $studentAcademicExamResult) @php $academicExam = $academicExams->where('id', $studentAcademicExamResult->academic_exam_id)->first(); @endphp @endforeach @foreach($studentAcademicExamResults as $studentAcademicExamResult) @endforeach @foreach($studentAcademicExamResults as $studentAcademicExamResult) @foreach($examConfigs as $examConfig) @endforeach @endforeach @php $iteration = 1; @endphp @foreach($student->mandatory_course_subjects as $mandatoryCourseSubject) @foreach($studentAcademicExamResults as $studentAcademicExamResult) @php $academicExam = $academicExams->where('id', $studentAcademicExamResult->academic_exam_id)->first(); $studentAcademicExamMark = $studentAcademicExamMarks ->where('course_subject_id', $mandatoryCourseSubject->id) ->where('academic_exam_id' ,$studentAcademicExamResult->academic_exam_id)->first(); $academicExamSubjectWiseResult = $studentAcademicExamResult->eims_academic_exam_subject_wise_result->where('course_subject_id', $mandatoryCourseSubject->id)->first(); @endphp @foreach($examConfigs as $examConfig) @endforeach @endforeach @endforeach @foreach($studentAcademicExamResults as $key => $studentAcademicExamResult) @if($key == 0) @else @endif @endforeach @foreach($student->optional_course_subjects as $optionalCourseSubject) @foreach($studentAcademicExamResults as $studentAcademicExamResult) @php $academicExam = $academicExams->where('id', $studentAcademicExamResult->academic_exam_id)->first(); $studentAcademicExamMark = $studentAcademicExamMarks ->where('course_subject_id', $optionalCourseSubject->id) ->where('academic_exam_id' ,$studentAcademicExamResult->academic_exam_id)->first(); $academicExamSubjectWiseResult = $studentAcademicExamResult->eims_academic_exam_subject_wise_result->where('course_subject_id', $optionalCourseSubject->id)->first(); @endphp @foreach($examConfigs as $examConfig) @endforeach @endforeach @endforeach @foreach($studentAcademicExamResults as $key => $studentAcademicExamResult) @if($key == 0) @else @endif @endforeach
Sl Subject {{$academicExam->name}}
Full Mark Theory Practical Marks Total Mark Highest Mark Grade G.P
{{ $examConfig->short_name }}
{{ $iteration++ }} {{ $mandatoryCourseSubject->course_subject_code }} - {{ $mandatoryCourseSubject->name }} {{$academicExam->eims_exam_subject_marks_config_details->where('course_subject_id', $mandatoryCourseSubject->id)->first()->max_mark ?? null}} {{ isset($studentAcademicExamMark->theory_marks) && $studentAcademicExamMark->theory_marks != 0 ? round($studentAcademicExamMark->theory_marks) : '-' }} {{ isset($studentAcademicExamMark->practical_marks) && $studentAcademicExamMark->practical_marks != 0 ? round($studentAcademicExamMark->practical_marks) : '-' }} {{isset($studentAcademicExamMark->marks[$examConfig->id]) ? round($studentAcademicExamMark->marks[$examConfig->id]) : '-' }} {{isset($academicExamSubjectWiseResult->total_mark) ? round($academicExamSubjectWiseResult->total_mark): '-' }} {{isset($academicExamSubjectWiseResult->height_mark) ? round($academicExamSubjectWiseResult->height_mark) : '-'}} {{$academicExamSubjectWiseResult->letter_grade ?? '-'}} {{is_numeric($academicExamSubjectWiseResult->grade_point) && ($academicExamSubjectWiseResult->grade_point != 0) ? (fmod($academicExamSubjectWiseResult->grade_point, 1) !== 0.00 ? number_format($academicExamSubjectWiseResult->grade_point, 2) : intval($academicExamSubjectWiseResult->grade_point)) : '-' }}
Total Marks & Total GP Without Optional {{ isset($studentAcademicExamResult->total_mark_without_optional) ? round($studentAcademicExamResult->total_mark_without_optional) : '-' }} {{is_numeric($studentAcademicExamResult->grade_point_without_optional) && ($studentAcademicExamResult->grade_point_without_optional != 0) ? (fmod($studentAcademicExamResult->grade_point_without_optional, 1) !== 0.00 ? number_format($studentAcademicExamResult->grade_point_without_optional, 2) : intval($studentAcademicExamResult->grade_point_without_optional)) : '-' }}
{{ $iteration++ }} {{ $optionalCourseSubject->course_subject_code }} - {{ $optionalCourseSubject->name }} {{$academicExam->eims_exam_subject_marks_config_details->where('course_subject_id', $optionalCourseSubject->id)->first()->max_mark ?? null}} {{ isset($studentAcademicExamMark->theory_marks) && $studentAcademicExamMark->theory_marks != 0 ? round($studentAcademicExamMark->theory_marks) : '-' }} {{ isset($studentAcademicExamMark->practical_marks) && $studentAcademicExamMark->practical_marks != 0 ? round($studentAcademicExamMark->practical_marks) : '-' }} {{ $studentAcademicExamMark->marks[$examConfig->id] ?? '-' }} {{isset($academicExamSubjectWiseResult->total_mark) ? round($academicExamSubjectWiseResult->total_mark): '-' }} {{isset($academicExamSubjectWiseResult->height_mark) ? round($academicExamSubjectWiseResult->height_mark) : '-'}} {{$academicExamSubjectWiseResult->letter_grade ?? '-'}} {{is_numeric($academicExamSubjectWiseResult->grade_point) && ($academicExamSubjectWiseResult->grade_point != 0) ? (fmod($academicExamSubjectWiseResult->grade_point, 1) !== 0.00 ? number_format($academicExamSubjectWiseResult->grade_point, 2) : intval($academicExamSubjectWiseResult->grade_point)) : '-' }}
Total Marks & Total GP {{ isset($studentAcademicExamResult->total_mark) ? round($studentAcademicExamResult->total_mark) : '-' }} {{is_numeric($studentAcademicExamResult->grade_point) && ($studentAcademicExamResult->grade_point != 0) ? (fmod($studentAcademicExamResult->grade_point, 1) !== 0.00 ? number_format($studentAcademicExamResult->grade_point, 2) : intval($studentAcademicExamResult->grade_point)) : '-' }}
@php $grade = EimsService::calculateGrade($studentAcademicExamResults->avg('subjects_average_total_mark'), $grades); @endphp
Grade Point Average {{ is_numeric($grade->grade_point) && ($grade->grade_point != 0) ? (fmod($grade->grade_point, 1) !== 0.00 ? number_format($grade->grade_point, 2) : intval($grade->grade_point)) : '-' }} Position Of Merit List Attendance
Letter grade {{$grade->name ?? '-'}} Section {{ intval($studentAcademicExamResults->avg('section_position')) ?? '-'}} out of {{$student->section_students_count ?? '-'}} Working Days {{ $studentAcademicExamResults->sum('working_days') != 0 ? $studentAcademicExamResults->sum('working_days') : '-'}}
Average Total Marks {{ number_format($studentAcademicExamResults->avg('subjects_average_total_mark'), 2) ?? '-'}} Class {{intval($studentAcademicExamResults->avg('class_position')) ?? '-'}} out of {{$student->class_semester_students_count ?? '-'}} Present Days {{ $studentAcademicExamResults->sum('present_days') != 0 ? $studentAcademicExamResults->sum('present_days') : '-'}}
Remarks :
Behaviour : avg('behavior_status')) == AcademicExamResultBehaviorStatus::EXCELLENT)> Excellent avg('behavior_status')) == AcademicExamResultBehaviorStatus::VERY_GOOD)> Very Good avg('behavior_status')) == AcademicExamResultBehaviorStatus::GOOD)> Good avg('behavior_status')) == AcademicExamResultBehaviorStatus::NEEDS_IMPROVEMENT)> Need Improvement
Co-Curricular Activities : avg('co_curricular_activity_status')) == AcademicExamResultCoCurricularActivityStatus::EXCELLENT)> Excellent avg('co_curricular_activity_status')) == AcademicExamResultCoCurricularActivityStatus::VERY_GOOD)> Very Good avg('co_curricular_activity_status')) == AcademicExamResultCoCurricularActivityStatus::GOOD)> Good avg('co_curricular_activity_status')) == AcademicExamResultCoCurricularActivityStatus::NEEDS_IMPROVEMENT)> Need Improvement
Samia Sultana

Class Teacher Signature


Cord/VP/AHM

Tanvir Hossain

Headmaster Signature

@endsection