@extends('pdf.layout') @section('title', 'Attendance Sheet') @section('content') @foreach ($student_list as $key => $student) @php $papers = array_values( $student['details'] ->whereIn('paper_type', [1, 8]) ->where('confirm_paper', 1) ->toArray(), ); // dd($papers); @endphp @if ($key) @include('include.page_break') @endif
{{--
--}}

National University

Bangladesh

{{--

{{ $student['exam_name'] ?: 'N/A' }}-{{ $student['year'] ?: 'N/A' }}

--}}

{{ $exam_display_name ?? '' }}

@if ($student['photo_url'] != null) @else
Passport Size Photograph
@endif

Attendance Sheet


{{--

Attendance Sheet of Examinee For {{ $student['exam_name'] }}-{{ $student['year'] }}

--}}
@if (isCenterTransfered($student['exam_code'], $student['year'], $student['reg_no'])) @php $cen_tran_data = cenTransInfo( $student['exam_code'], $student['year'], $student['reg_no'], ); @endphp @endif @if (in_array($student['exam_code'], [1101, 1102, 1103])) @else @if (!empty($student['subject_code']) && !empty($student['subject_name'])) @elseif (!empty($student['degree_group_code']) && !empty($student['degree_group_name'])) @endif @endif {{-- @if ($papers[0]['paper_group_id'] != null && !empty($papers[0]['paper_group_id'])) @endif --}}
Center Code & Name : {{ $student['center_code'] ?: 'N/A' }}-{{ $student['center_name'] ?: 'N/A' }}, {{ $student['center_district_name'] ?? '' }} {{-- @php // $centerDisId = DB::table('college_infos')->where('college_code',$student['center_college_code'])->first()->district; //$cDisName = DB::table('core_districts')->where('district_id',$student['center_district'])->first()->district_name; @endphp @isset($cDisName) {{ ', '.$cDisName }} @endisset --}}
Changed Center : {{ $cen_tran_data['center_code'] ?: 'N/A' }}-{{ $cen_tran_data['center_name'] ?: 'N/A' }}, {{ $cen_tran_data['district_name'] ?? '' }}
College Code & Name : {{ $student['college_code'] ?: 'N/A' }}-{{ $student['college_name'] ?: 'N/A' }}, {{ $student['college_district_name'] ?? '' }} {{-- @php $cDisId = DB::table('college_infos')->where('college_code',$student['college_code'])->first()->district; $cDisName = DB::table('core_districts')->where('district_id',$cDisId)->first()->district_name; @endphp @isset($cDisName) {{ ', '.$cDisName }} @endisset --}}
Course Name : {{ $student['subject_name'] ?: 'N/A' }} {{-- @if ($student['exam_code'] == 1101) {{ $student['subject_name'] ?: 'N/A' }} {{ '[1ST YEAR]' }} @elseif($student['exam_code'] == 1102) {{ $student['subject_name'] ?: 'N/A' }} {{ '[2ND YEAR]' }} @elseif($student['exam_code'] == 1103) {{ $student['subject_name'] ?: 'N/A' }} {{ '[3RD YEAR]' }} @endif --}}
Subject Code & Name : {{ $student['subject_code'] ?: 'N/A' }}-{{ $student['subject_name'] ?: 'N/A' }}
Degree Group Code & Name : {{ $student['degree_group_code'] ?: 'N/A' }}-{{ $student['degree_group_name'] ?: 'N/A' }}
Major Subject : {{ App\Models\Bigm\Core\Paper::getMejorSubject($papers[0]['paper_group_id']) }}
Name of Examinee : {{ $student['examinee_name'] ?: 'N/A' }}
Father's Name : {{ $student['father_name'] ?: 'N/A' }}
Mother's Name : {{ $student['mother_name'] ?: 'N/A' }}
Roll No {{ $student['exam_roll'] ?: 'N/A' }}
Registration No {{ $student['reg_no'] ?: 'N/A' }}
Session {{ $student['session_year'] ?: 'N/A' }}
Student Type {{ $student['student_type'] ?: 'N/A' }}
@for ($row = 0; $row < 11; $row++) @if (isset($papers[$row])) @php $paper = $papers[$row]; @endphp @else @endif @endfor
Exam Date Paper Code Paper Title Student's Signature Top Cover OMR Sl. No Invigilator's Signature
{{ App\Models\Bigm\Core\Paper::getDisplayPaperCode($papers[$row]['paper_code']) }} {{ $papers[$row]['paper_name'] }}      
           
Seal and Signature of Center-In-Charge Seal and Signature of Hall Super/In-Charge
@include('include.generated_on') @endforeach @stop