{{ $reportData['college']->college_name }}{{ $reportData['college']->affiliated_by }} {{ $reportData['college']->address }} |
S.No | Department Name | Course Name | BC-D | OC | SC | Group Totals |
---|---|---|---|---|---|---|
{{ $serial++ }} | {{ $department->department_name }} | {{ $department->course_name }} | @php // Initialize caste count variables $bc_d_count = 0; $oc_count = 0; $sc_count = 0; // Loop through casteWiseCount and match the caste name foreach ($reportData['casteWiseCount'] as $caste) { if ($caste->caste_name === 'BC-D') { $bc_d_count = $caste->count; } if ($caste->caste_name === 'OC') { $oc_count = $caste->count; } if ($caste->caste_name === 'SC') { $sc_count = $caste->count; } } // Calculate Group Totals $group_totals = $bc_d_count + $oc_count + $sc_count; // Accumulate totals for the final row $total_bc_d += $bc_d_count; $total_oc += $oc_count; $total_sc += $sc_count; $total_group += $group_totals; @endphp{{ $bc_d_count }} | {{ $oc_count }} | {{ $sc_count }} | {{ $group_totals }} |
Total | {{ $total_bc_d }} | {{ $total_oc }} | {{ $total_sc }} | {{ $total_group }} |