@foreach($student as $std)
{{$site_setting->name}}

{{$site_setting->address}}
Estd: {{$site_setting->estd}}

{{$exam_terminal->exam_type}} {{$this_session}}
MARK-SHEET
Name : {{$std->name}} Roll No. : {{$std->roll_no}}
Class : {{$std['standard']['class_name']}} Section : {{$std['section']['section_name']}}
@endif @php $add_marks = \App\AddMark::with('subject')->where('student_id',$std->id)->get(); $grand_full_total = 0; $grand_pass_total = 0; $total_theory_individual = 0; $total_practical_individual = 0; $total_marks_obtained = 0; $total_gpa_value = 0; $total_subject=0; $fail_count = 0; @endphp @foreach($add_marks as $am) @if($template==='ggrh' || $template==='gghrt') @endif @endforeach
S.N. Subject F.M. P.M. TH. PR. Total Grade @if($template==='ggrh' || $template==='gghrt') Highest
Marks
{{$loop->index+1}} {{$am['subject']['subject_name']}} {{$total_full_marks}} {{$total_pass_marks}} @if($am['theory'] >= $am['subject']['subject_mark']['theory_pass'] ) {{$am['theory']}} @else {{$am['theory']}}* @endif @if($am['practical'] >= $am['subject']['subject_mark']['practical_pass'] ) {{$am['practical']}} @else {{$am['practical']}}* @endif @if($am['theory'] >= $am['subject']['subject_mark']['theory_pass'] && $am['practical'] >= $am['subject']['subject_mark']['practical_pass'] ) {{$total_marks}} @else {{$total_marks}}* @endif @php if($total_marks >= 90){ $gpa_value = 4.00; echo "A+"; } elseif(80 <= $total_marks && $total_marks < 90){ $gpa_value =3.60; echo "A"; } elseif(70 <= $total_marks && $total_marks< 80){ $gpa_value = 3.20; echo "B+"; } elseif(60 <= $total_marks && $total_marks < 70){ $gpa_value = 2.80; echo "B"; } elseif(50 <= $total_marks && $total_marks < 60){ $gpa_value = 2.40; echo "C+"; } elseif(40 <= $total_marks && $total_marks < 50){ $gpa_value = 2.00; echo "C"; } elseif(30 <= $total_marks && $total_marks < 40){ $gpa_value = 1.60; echo "D+"; } elseif(20 <= $total_marks && $total_marks < 30){ $gpa_value = 1.20; echo "D"; } else{ $gpa_value = 0.80; echo "E"; } @endphp @php echo max($result[$am->subject_id]); @endphp
Total {{$grand_full_total}} {{$grand_pass_total}} {{$total_theory_individual}} {{$total_practical_individual}} {{$total_marks_obtained }}
Outcomes
@if($template ==='grade' || $template==='gradegpa' || $template==='ggr' || $template==='ggrh' || $template==='ggrht') {{-- --}}
Grade @php if($percentage >= 90){ echo "A+"; } elseif(80 <= $percentage && $percentage < 90){ echo "A"; } elseif(70 <= $percentage && $percentage< 80){ echo "B+"; } elseif(60 <= $percentage && $percentage < 70){ echo "B"; } elseif(50 <= $percentage && $percentage < 60){ echo "C+"; } elseif(40 <= $percentage && $percentage < 50){ echo "C"; } elseif(30 <= $percentage && $percentage < 40){ echo "D+"; } elseif(20 <= $percentage && $percentage < 30){ echo "D"; } else{ echo "E"; } @endphp
GPA {{sprintf("%.2f",($total_gpa_value/$total_subject))}}
Percentage {{ sprintf("%.2f",($percentage))}}%
Attendance @php $student_attendance_date=$std['attendance']->whereBetween('attendance_date', [$carbon_date, $first_date]); $present_count = 0; foreach($student_attendance_date as $att_count){ if($att_count->status == "P"){ $present_count++; } } echo $present_count."/".count($student_attendance_date); @endphp
@if( $template==='gradegpa' || $template==='ggr' || $template==='ggrh' || $template==='ggrht') @endif @endif @if($template==='ggr' || $template==='ggrh' || $template==='ggrht') @endif @if($template==='ggrh' || $template==='ggr') @endif
GPA {{sprintf("%.2f",($total_gpa_value/$total_subject))}}
Result @if($fail_count === 0) Pass @else Fail @endif
Rank @php $i = 1; @endphp @forelse($ranks as $key => $rank) @if($std->id == $key ) {{array_search($key,array_keys($ranks))+1}} @endif @empty @endforelse
Remark:
@php if($percentage >= 90){ echo "Excellent"; } elseif(80 <= $percentage && $percentage < 90){ echo "Very Good"; } elseif(70 <= $percentage && $percentage< 80){ echo "Good"; } elseif(60 <= $percentage && $percentage < 70){ echo "Good"; } elseif(50 <= $percentage && $percentage < 60){ echo "Satisfactory"; } elseif(40 <= $percentage && $percentage < 50){ echo "Satisfactory"; } elseif(30 <= $percentage && $percentage < 40){ echo "Poor"; } elseif(20 <= $percentage && $percentage < 30){ echo "Fail"; } else{ echo "Fail"; } @endphp
Issue Date:
{{$am['created_at']->format('d/m/Y')}}

_____________
Class Teacher

_____________
School seal

_____________
Principal
@endforeach