@vite(["resources/css/app.css", "resources/js/app.js"]) @foreach ($students as $student)

Student Report Card

@foreach ($student["Info"] as $header => $data) @if ($header != "Division" && $header != "Subjects" && $header != "Grade") @elseif ($header == "Grade") @endif @endforeach
{{ $header }} : {{ $data }}
{{ $header }} :

{{ $data["Cambridge"] }} ({{ $data["Government"] }})

@php $division = strtolower($student["Info"]["Division"]); @endphp @if ($division == "lower")
Grade Boundary Marks
Grade A Grade S Grade E
75% to 100% 40% to 74% 0% to 39%
@elseif ($division == "upper" || $division == "secondary")
Grade Boundary Marks
Grade A Grade B Grade C Grade D
80% to 100% 60% to 79% 40% to 59% 0% to 39%
@else
Grade Boundary Marks
Error
@endif
@foreach (array_keys($student["Month"]) as $month) @endforeach @php $subjects = explode(",", $student["Info"]["Subjects"]); $studentMarks = []; foreach ($student["Month"] as $month => $marks) { if (! empty($marks)) { $subjectMarks = explode(",", $marks); $markArray = []; foreach ($subjectMarks as $mark) { $markArray[explode("=", $mark)[0]] = explode("=", $mark)[1]; } $studentMarks[$month] = $markArray; } else { $studentMarks[$month] = ""; } } @endphp @foreach ($subjects as $subject) @foreach ($studentMarks as $month => $mark) @endforeach @endforeach
No Subject{{ $month }}
{{ $loop->iteration }} {{ $subject }} {{ ! empty($mark[$subject]) ? $mark[$subject] : "" }}
@foreach ($student["Sign"] as $text => $sign)
Signature

{{ $text }}

@endforeach
@endforeach