@extends('pdf.layout') @section('title', $report_title) @section('content') @foreach($students_arr as $candidate_item) @php $chunk_size = 25; $key = 1; $total_practical_candidate = 0; $total_viva_candidate = 0; @endphp @foreach(array_chunk($candidate_item['subject_data'], $chunk_size) as $chunk) @include('include.report_header')

{{ $report_title }} For {{ $candidate_item['exam_name'] }}-{{ $candidate_item['year'] }}



College Code & Name: {{ $candidate_item['college_code'] }}-{{ $candidate_item['college_name'] }}

No of Total Student: {{ $candidate_item['student_count'] }}



@foreach($chunk as $item) @php $total_practical_candidate += $item['total_practical_student'] @endphp @php $total_viva_candidate += $item['total_viva_student'] @endphp @endforeach
SL Subject Code & Name Practical Student Count Viva Student Count Remarks
{{ $key++ }} {{ $item['subject_code'] }}-{{ $item['subject_name'] }} {{ $item['total_practical_student'] }}{{ $item['total_viva_student'] }} 
Total Student = {{ $total_practical_candidate }} {{ $total_viva_candidate }}
@endforeach @endforeach @stop