@if (isset($settings['profile_image_style']) && $settings['profile_image_style'] == 'squre') @else @endif @if (isset($settings['layout_type']) && $settings['layout_type'] == 'horizontal') @else @endif @foreach ($students as $key => $student)
@if ($settings['layout_type'] == 'horizontal') @if (in_array('student_name', $settings['student_id_card_fields'])) @endif @if (in_array('gr_no', $settings['student_id_card_fields'])) @endif @if (in_array('class_section', $settings['student_id_card_fields'])) @endif @if (in_array('roll_no', $settings['student_id_card_fields'])) @endif @if (in_array('dob', $settings['student_id_card_fields'])) @endif @if (in_array('blood_group', $settings['student_id_card_fields'])) @endif @if (in_array('gender', $settings['student_id_card_fields'])) @endif @if (in_array('session_year', $settings['student_id_card_fields'])) @endif @if (in_array('guardian_name', $settings['student_id_card_fields'])) @if ($student->father) @else @endif @endif @if (in_array('guardian_contact', $settings['student_id_card_fields'])) @if ($student->father) @else @endif @endif @if (in_array('address', $settings['student_id_card_fields'])) @endif
{{ $settings['school_name'] }}
@if ($student->user->getRawOriginal('image')) @else @endif {{ $student->user->first_name . ' ' . $student->user->last_name }}
GR No. : {{ $student->admission_no }}
Class Section : {{ $student->class_section->class->name . ' ' . $student->class_section->section->name . ' ' . $student->class_section->class->medium->name . ' ' . ($student->class_section->class->streams->name ?? '') }}
Roll No. : {{ $student->roll_number ?? '' }}
DOB : {{ date($settings['date_formate'], strtotime($student->user->dob)) }}
Blood Group : {{ $student->blood_group ?? '' }}
Gender : {{ $student->user->gender }}
Session Year : {{ $sessionYear ?? '' }}
Father/Guardian Name :{{ ($student->father->first_name ?? '') . ' ' . ($student->father->last_name ?? '') }} {{ ($student->guardian->first_name ?? '') . ' ' . ($student->guardian->last_name ?? '') }}
Father/Guardian Contact :{{ $student->father->mobile ?? '' }}{{ $student->guardian->mobile ?? '' }}
Address : {{ $student->user->permanent_address ?? '' }}
@if ($settings['signature'] ?? '') Signature @endif
@else {{-- Vertical --}}

@if (in_array('student_name', $settings['student_id_card_fields'])) @endif @if (in_array('gr_no', $settings['student_id_card_fields'])) @endif @if (in_array('class_section', $settings['student_id_card_fields'])) @endif @if (in_array('roll_no', $settings['student_id_card_fields'])) @endif @if (in_array('dob', $settings['student_id_card_fields'])) @endif @if (in_array('blood_group', $settings['student_id_card_fields'])) @endif @if (in_array('gender', $settings['student_id_card_fields'])) @endif @if (in_array('session_year', $settings['student_id_card_fields'])) @endif @if (in_array('guardian_name', $settings['student_id_card_fields'])) @if ($student->father) @else @endif @endif @if (in_array('guardian_contact', $settings['student_id_card_fields'])) @if ($student->father) @else @endif @endif @if (in_array('address', $settings['student_id_card_fields'])) @endif
{{ $settings['school_name'] }}
@if ($settings['logo1'] ?? '') @else @endif
@if ($student->user->getRawOriginal('image')) @else @endif
{{ $student->user->first_name . ' ' . $student->user->last_name }}
GR No. : {{ $student->admission_no }}
Class Section : {{ $student->class_section->class->name . ' ' . $student->class_section->section->name . ' ' . $student->class_section->class->medium->name . ' ' . ($student->class_section->class->streams->name ?? '') }}
Roll No. : {{ $student->roll_number ?? '' }}
DOB : {{ date($settings['date_formate'], strtotime($student->user->dob)) }}
Blood Group : {{ $student->blood_group ?? '' }}
Gender : {{ $student->user->gender }}
Session Year : {{ $sessionYear ?? '' }}
Father/Guardian Name :{{ ($student->father->first_name ?? '') . ' ' . ($student->father->last_name ?? '') }} {{ ($student->guardian->first_name ?? '') . ' ' . ($student->guardian->last_name ?? '') }}
Father/Guardian Contact :{{ $student->father->mobile ?? '' }}{{ $student->guardian->mobile ?? '' }}
Address : {{ $student->user->permanent_address }}
@if ($settings['signature'] ?? '') Signature @endif
@endif @if (isset($settings['layout_type']) && $settings['layout_type'] == 'horizontal')
@if ($settings['background_image'] ?? '') @endif
@else
@if ($settings['background_image'] ?? '') @endif
@endif
@endforeach