@extends('pdf.layout') @section('title', 'Descriptive Roll Sheet') @section('content') @foreach($center_desc_array as $key=>$center_desc_item) @php $sl = 0; $total = 0; @endphp @foreach(array_chunk($center_desc_item['student_list'], 13) as $chunk)

National University

Bangladesh

  
{{ $center_desc_item['exam_display_name'] }}

Descriptive Roll Sheet

@if(!empty($center_desc_item['subject_code']) && !empty($center_desc_item['subject_name'])) @elseif (!empty(collect($center_desc_item['student_list'])->whereNotNull('degree_group_code')->first()) && !empty(collect($center_desc_item['student_list'])->whereNotNull('degree_group_name')->first())) @endif
Center Code & Name : {{ $center_desc_item['center_code'] ?: 'N/A' }}-{{ $center_desc_item['center_name'] ?: 'N/A' }}, {{ $center_desc_item['center_district_name'] ?: 'N/A' }}
College Code & Name : {{ $center_desc_item['college_code'] ?: 'N/A' }}-{{ $center_desc_item['college_name'] ?: 'N/A' }}, {{ $center_desc_item['college_district_name'] ?: 'N/A' }}
Subject Code & Name : {{ $center_desc_item['subject_code'] ?: 'N/A' }}-{{ $center_desc_item['subject_name'] ?: 'N/A' }}
Degree Group Code & Name : {{ collect($center_desc_item['student_list'])->whereNotNull('degree_group_code')->first()['degree_group_code'] ?: 'N/A' }}-{{ collect($center_desc_item['student_list'])->whereNotNull('degree_group_name')->first()['degree_group_name'] ?: 'N/A' }}
No. Of Student: {{ $center_desc_item['student_count'] }}
@foreach($chunk as $item) @php $sl++; @endphp @endforeach @if($loop->last) @endif
SL Exam Roll Reg. No
Session/Type
Name of Examinee Photo Course Code (To Be Appeared)
{{ $sl }} {{ $item['exam_roll'] }} {{ $item['reg_no'] }}
{{ $item['session_year'] }}/ @php if($item['student_type'] == 'REGULAR'){ $student_type = 'REG'; }elseif($item['student_type'] == 'IRREGULAR'){ $student_type = 'IRR'; }else{ $student_type = 'IMP'; } @endphp {{ $student_type }}
{{ $item['student_name'] }} @if($item['photo_url'] != null) @endif @php $paper_codes = []; @endphp @foreach($item['papers'] as $paper) @php $paper_codes[] = App\Models\Bigm\Core\Paper::getDisplayPaperCode($paper); @endphp @endforeach {{ implode(", ",$paper_codes) }}
Total Student = {{ $sl }}

Note: REG Regular, IRR Irregular, IMP Improvement

Page {{ $loop->iteration }} Of {{ $loop->count }}

Generated On: {{ \Carbon\Carbon::now()->format('d F Y') }}

@include('include.generated_on') @endforeach @endforeach @stop