@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 @foreach ($student->extra_student_details as $data) @if (in_array($data->form_field->type, ['text','number','radio','textarea'])) @elseif($data->form_field->type == 'dropdown') @elseif($data->form_field->type == 'checkbox') @endif @endforeach
{{ $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 }}
{{ $data->form_field->name }} : {{ $data->data }}
{{ $data->form_field->name }} : {!! $data->form_field->default_values[$data->data] !!}
{{ $data->form_field->name }} : {!! implode(",",json_decode($data->data ?? '[]')) !!}
@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 @foreach ($student->extra_student_details as $data) @if (in_array($data->form_field->type, ['text','number','radio','textarea'])) @elseif($data->form_field->type == 'dropdown') @elseif($data->form_field->type == 'checkbox') @endif @endforeach
{{ $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 }}
{{ $data->form_field->name }} : {{ $data->data }}
{{ $data->form_field->name }} : {!! $data->form_field->default_values[$data->data] !!}
{{ $data->form_field->name }} : {!! implode(",",json_decode($data->data ?? '[]')) !!}
@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