{{-- Fixed columns --}}
| {{ $student['name'] ?? '' }} |
{{ $student['admission_no'] ?? '' }} |
{{ $student['father_name'] ?? '' }} |
{{ $student['mother_name'] ?? '' }} |
{{ $student['gender'] ?? '' }} |
{{-- Subject marks --}}
@php
$studentSubjects = collect($student['subjects'] ?? [])->keyBy('key');
@endphp
@foreach($data['blueprint']['subjects'] ?? [] as $subject)
@php
$subjectData = $studentSubjects->get($subject['key'], []);
$subjectComponents = collect($subjectData['components'] ?? [])->keyBy('key');
@endphp
@foreach($subject['components'] ?? [] as $component)
@if(($component['showOnReport'] ?? true) === true)
@php
$compData = $subjectComponents->get($component['key'], []);
$obtained = $compData['obtained'] ?? '';
@endphp
{{ $obtained }} |
@endif
@endforeach
@if(!empty($subject['showTotal']))
{{ $subjectData['total'] ?? '' }} |
@endif
@endforeach
{{-- Summary columns --}}
{{ $student['summary']['total_obtained'] ?? '' }} |
{{ $student['summary']['total_max'] ?? '' }} |
{{ $student['summary']['percentage'] ?? '' }} |
{{ $student['summary']['grade'] ?? '' }} |
{{ $student['summary']['result_status'] ?? '' }} |
@endforeach