@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('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('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'])) @endif @if (in_array('guardian_contact',$settings['student_id_card_fields'])) @endif
{{ $settings['school_name'] }}
Student Identification Card
@if ($student->getRawOriginal('image')) @else @endif Student Name : {{ $student->full_name }}
Class Section : {{ $student->student->class_section->full_name }}
Roll No. : {{ $student->student->roll_number }}
DOB : {{ date($settings['date_format'],strtotime($student->dob)) }}
Gender : {{ $student->gender }}
Session Year : {{ $sessionYear->name }}
Guardian Name : {{ $student->student->guardian->full_name }}
Guardian Contact : {{ $student->student->guardian->mobile }}
@if ($settings['signature'] ?? '') Signature @endif
@else {{-- Vertical --}} @if (in_array('student_name',$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('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'])) @endif @if (in_array('guardian_contact',$settings['student_id_card_fields'])) @endif
{{ $settings['school_name'] }}
@if ($settings['horizontal_logo'] ?? '') @else @endif
Student Identification Card
@if ($student->getRawOriginal('image')) @else @endif
Name : {{ $student->full_name }}
Class Section : {{ $student->student->class_section->full_name }}
Roll No. : {{ $student->student->roll_number }}
DOB : {{ date($settings['date_format'],strtotime($student->dob)) }}
Gender : {{ $student->gender }}
Session Year : {{ $sessionYear->name }}
Guardian Name : {{ $student->student->guardian->full_name }}
Guardian Contact : {{ $student->student->guardian->mobile }}
@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