@extends('layouts.master') @section('content')
@csrf
{{ generateDropdown($exams, 'class="form-control exam_id" id="exam_id" name="exam_id" required', $exam_id, 'Select Exam') }}
{{ generateDropdown($academicYears, 'name="academic_year" class="form-control shift_id" id="shift_id"', $academic_year, "Select Year") }}
{{ generateDropdown($shifts, 'class="form-control shift_id" id="shift_id" name="shift_id" ', $shift_id, "Select Shift") }}
{{ generateDropdown($studentClasses, 'class="form-control student_class" id="student_class" name="student_class_id" required', $student_class_id, "Select Class") }}
{{ generateDropdown($sections, 'class="form-control section_id" id="section_id" name="section_id" ', $section_id) }}
{{ generateDropdown($groups, 'class="form-control group_id" id="group_id" name="group_id"', $group_id, 'Select Group') }}
@if(isset($students) && !$students->isEmpty())
Mark Sheet
{{-- --}}
@php $grades_str = ''; foreach ($grades as $grade){ $grades_str .= " $grade->mark_from-$grade->mark_to $grade->name $grade->remark "; } $head_marks_array = json_decode($assignedMarksHead->first()->head_marks, true); $head_id_array = array_keys($head_marks_array); @endphp @foreach ($students as $key=>$student) @php $grand_total = 0; $grand_total_obtain = 0; $exam = $exams[$exam_id] ?? ""; $section = $sections[$student->section_id] ?? ""; $class = $studentClasses[$student->student_class_id] ?? ""; $academicYear = $academicYears[$academic_year] ?? ""; $examRecords = $student?->examRecords ?? ""; @endphp @if ($examRecords->isNotEmpty())

Jabalunnur Al-Jamiatul Islamia

{{-- Academic Transcript --}}
Student Information
ID {{$student->student_id_no}}
Name {{$student->first_name}} {{$student->last_name}}
Session {{$academicYear}}
Class {{$class}}
Section {{$section}}
Roll {{$student->class_roll}}
{!!$grades_str!!}
Grade Referance
Marks Grade Comments
@if (isset($head_id_array)) @foreach ($markHeads as $head) @if (in_array($head->id,$head_id_array)) @endif @endforeach @endif @foreach ($examRecords as $recoards) @php $full_marks = 0; $head_wise_total_obtain = []; $total_marks_obtain = 0; $head_records_str = ''; $blank_col_str = ''; $head_wise_marks_record = json_decode($recoards->head_wise_marks); $subject_head_marks = $assignedMarksHead->groupBy('subject_id'); $head_marks_data = $subject_head_marks[$recoards->subject->id]->first(); $head_marks_array = json_decode($head_marks_data->head_marks); @endphp @if (isset($head_wise_marks_record)) @foreach ($markHeads as $head) @if (in_array($head->id,$head_id_array)) @php $full_marks += $head_marks_array->{$head?->id}; $head_records_str .= ""; $total_marks_obtain += $head_wise_marks_record?->{$head?->id} ?? 0; $blank_col_str .= "" @endphp @endif @endforeach {!!$head_records_str!!} @php $grand_total_obtain += $total_marks_obtain; $grand_total += $full_marks; @endphp @endif @endforeach {!!$blank_col_str!!} @php $grade_name = ""; $grand_total_percentage = $grand_total_obtain>0 ? (($grand_total_obtain*100)/$grand_total) : 0; foreach ($grades as $grade){ if($grade->mark_from<=$grand_total_percentage && $grade->mark_to>=$grand_total_percentage){ $grade_name = $grade->name; } } @endphp {{-- --}} {{-- {!!$blank_col_str!!} --}} {{-- --}} {{-- {!!$blank_col_str!!} --}} {{-- --}}
Subject Full
Marks
{{$exam}}
{{$head->short_name}}Total marks obtained Heighest marks
{{$recoards->subject->subject_name}}".($head_wise_marks_record?->{$head?->id} ?? "-")."{{$full_marks}}{{$total_marks_obtain}} {{round($recoards?->highest_marks[$recoards?->subject?->id]) ?? ""}}
Grand Total {{$grand_total}} {{$grand_total_obtain}}
Percentage {{round($grand_total_percentage,2)}}%
Grade {{$grade_name}}
Working Days {{$examRecords[0]?->total_working_days ?? ""}}
Present {{$examRecords[0]?->present_count ?? ""}}
Absent {{$examRecords[0]?->absent_count ?? ""}}
Remarks
Result Published {{$publish_date}}
Conduct
Moral Development
Discipline
Hand Writing
General Remark Try more for further upliftment
Class Teacher's Signature Principle's Signature Guardian's Signature
@endif @endforeach
@endif @stop @section('scripts') @endsection