{{-- --}} {{-- --}}
@php $roleId= json_decode($id_card->role_id); @endphp @foreach($s_students as $staff_student) @if(!in_array(3,$roleId)) @if($id_card->page_layout_style=='horizontal')
background_img) : asset('/backEnd/id_card/img/vertical_bg.png') }}); width: {{!empty($id_card->pl_width) ? $id_card->pl_width : 57.15}}mm; height: {{!empty($id_card->pl_height) ? $id_card->pl_height : 88.89999999999999}}mm; margin: auto; background-size: 100% 100%; background-position: center center; position: relative; background-color: #fff;">
student_photo != "" ? asset(@$staff_student->student_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('/backEnd/id_card/img/thumb.png')) }} @else {{ @$staff_student->staff_photo != "" ? asset(@$staff_student->staff_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('/backEnd/id_card/img/thumb.png')) }} @endif );background-size: cover; background-position: center center; background-repeat: no-repeat; line-height:1.02; width: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 21.166666667}}mm; flex: 80px 0 0; height: {{!empty($id_card->user_photo_height) ? $id_card->user_photo_height : 21.166666667}}mm; margin: auto; padding: 3px; align-content: center; justify-content: center; display: flex; border: 3px solid #fff;">
@if($id_card->student_name==1)

{{ $staff_student->full_name !=''? $staff_student->full_name :''}}

@endif @if($id_card->admission_no==1 )
@if($role_id==2)

@lang('student.admission_no') : {{$staff_student->admission_no}}

@else

@lang('hr.staff_id') : {{$staff_student->staff_no}}

@endif
@endif @if($id_card->class==1 && $role_id==2) @if(!moduleStatusCheck('University'))

@lang('common.class') : @foreach($staff_student->getClassRecord as $record) {{ $record->class->class_name}} ({{$record->section->section_name}}) {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($id_card->un_faculty==1)

@lang('university::un.faculty') : @foreach($staff_student->studentRecords as $record) {{ $record->unFaculty->name}} , @endforeach

@endif @if($id_card->un_department==1)

@lang('university::un.department') : @foreach($staff_student->studentRecords as $record) {{ $record->unDepartment->name}} , @endforeach

@endif @if($id_card->un_academic==1)

@lang('university::un.academic') : @foreach($staff_student->studentRecords as $record) {{ $record->UnAcademic->name}} , @endforeach

@endif @if($id_card->un_semester==1)

@lang('university::un.semester') : @foreach($staff_student->studentRecords as $record) {{ $record->unSemester->name}} , @endforeach

@endif @endif
@if($id_card->father_name ==1)

@lang('student.father_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->fathers_name:""}}@else {{$staff_student->fathers_name}} @endif

@endif @if($id_card->mother_name==1)

@lang('student.mother_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->mothers_name:""}} @else {{$staff_student->mothers_name}} @endif

@endif
@if($id_card->dob==1)

@lang('common.date_of_birth') : {{@dateConvert($staff_student->date_of_birth)}}

@endif @if($id_card->blood==1 && $role_id==2)

@lang('student.blood_group') : {{@$staff_student->bloodGroup!=""?@$staff_student->bloodGroup->base_setup_name:""}}

@endif
@if($id_card->student_address==1)

{{@$staff_student->current_address!=""?@$staff_student->current_address:""}}

@lang('common.address')

@endif
@endif @if($id_card->page_layout_style=='vertical')
background_img) : asset('/backEnd/id_card/img/horizontal_bg.png') }}); width: {{!empty($id_card->pl_width) ? $id_card->pl_width : 86}}mm; height: {{!empty($id_card->pl_height) ? $id_card->pl_height : 54}}mm; margin: auto; background-size: 100% 100%; background-position: center center; position: relative;">
student_photo != "" ? asset(@$staff_student->student_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('/backEnd/id_card/img/thumb.png')) }} @else {{ @$staff_student->staff_photo != "" ? asset(@$staff_student->staff_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('/backEnd/id_card/img/thumb.png')) }} @endif ); line-height:1.02; width: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 13.229166667}}mm; height: {{!empty($id_card->user_photo_height) ? $id_card->user_photo_height : 13.229166667}}mm; flex-basis: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 13.229166667}}mm; flex-grow: 0; flex-shrink: 0; margin-right: 20px; background-size: cover; background-position: center center;">
@if($id_card->student_name==1)

{{$staff_student->full_name}}

@endif @if($id_card->admission_no==1)
@if($role_id==2)

@lang('student.admission_no') : {{$staff_student->admission_no}}

@else

@lang('hr.staff_id') : {{$staff_student->staff_no}}

@endif
@endif @if($id_card->class==1 && $role_id==2 && !moduleStatusCheck('University'))

@lang('common.class') : @foreach($staff_student->getClassRecord as $record) {{ $record->class->class_name}} ({{$record->section->section_name}}) {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($role_id==2 && moduleStatusCheck('University')) @if($id_card->un_session==1)

@lang('university::un.session') : @foreach($staff_student->studentRecords as $record) {{ $record->unSession->name}} {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($id_card->un_faculty==1)

@lang('university::un.faculty') : @foreach($staff_student->studentRecords as $record) {{ $record->unFaculty->name}} {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($id_card->un_department==1)

@lang('university::un.department') : @foreach($staff_student->studentRecords as $record) {{ $record->unDepartment->name}} {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($id_card->un_academic==1)

@lang('university::un.academic') : @foreach($staff_student->studentRecords as $record) {{ $record->unAcademic->name}} {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @if($id_card->un_semester==1)

@lang('university::un.semester') : @foreach($staff_student->studentRecords as $record) {{ $record->unSemester->name}} {{ ($loop->iteration > 1 && !$loop->last) ? ',' :'' }} @endforeach

@endif @endif

@if($id_card->dob==1)

@lang('common.date_of_birth') : {{@dateConvert($staff_student->date_of_birth)}}

@endif @if($id_card->blood==1 && $role_id==2)

@lang('student.blood_group') : {{@$staff_student->bloodGroup!=""?@$staff_student->bloodGroup->base_setup_name:""}}

@endif
@if($id_card->father_name ==1)

@lang('student.father_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->fathers_name:""}}@else {{$staff_student->fathers_name}} @endif

@endif @if($id_card->mother_name==1)

@lang('student.mother_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->mothers_name:""}} @else {{$staff_student->mothers_name}} @endif

@endif
@if($id_card->student_address==1)

{{@$staff_student->current_address!=""?@$staff_student->current_address:""}}

@lang('common.address')

@endif
@endif @else @if($id_card->page_layout_style=='horizontal')
background_img) : asset('/backEnd/id_card/img/vertical_bg.png') }}); width: {{!empty($id_card->pl_width) ? $id_card->pl_width : 55}}mm; height: {{!empty($id_card->pl_height) ? $id_card->pl_height : 106}}mm; margin: auto; background-size: 100% 100%; background-position: center center; position: relative; background-color: #fff;">
guardians_photo != "" ? asset(@$staff_student->guardians_photo) : asset('/backEnd/id_card/img/thumb.png') }});background-size: cover; background-position: center center; background-repeat: no-repeat; line-height:1.02; flex: 80px 0 0; width: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 21.166666667}}mm; flex: 80px 0 0; height: {{!empty($id_card->user_photo_height) ? $id_card->user_photo_height : 21.166666667}}mm; margin: auto;border-radius: 50%; padding: 3px; align-content: center; justify-content: center; display: flex; border: 3px solid #fff;">
@if($id_card->student_name==1)

{{$staff_student->guardians_name ? $staff_student->guardians_name : $staff_student->father_name}}

@endif
{{--

upedia

--}} @if($id_card->phone_number == 1)

{{$staff_student->guardians_mobile ? $staff_student->guardians_mobile : $staff_student->fathers_mobile}}

@endif
@php $studentInfos= App\SmStudentIdCard::studentName($staff_student->id); @endphp @foreach ($studentInfos as $studentInfo)
student_photo) : asset('/backEnd/id_card/img/thumb.png') }});background-size: cover; background-position: center center; background-repeat: no-repeat; line-height:1.02; width: 45px; flex: 45px 0 0; height: 46px; margin: auto;border-radius: 50%; padding: 3px; align-content: center; justify-content: center; display: flex; border: 3px solid #fff;">

{{$studentInfo->full_name}}

@endforeach
{{--

B+

Blood Group

--}}
@if($id_card->student_address==1)

{{generalSetting()->address}}

@lang('common.address')

@endif
@endif @if($id_card->page_layout_style=='vertical')
background_img) : asset('/backEnd/id_card/img/horizontal_bg.png') }}); width: {{!empty($id_card->pl_width) ? $id_card->pl_width : 106}}mm; height: {{!empty($id_card->pl_height) ? $id_card->pl_height : 55}}mm; margin: auto; background-size: 100% 100%; background-position: center center; position: relative;">
guardians_photo != "" ? asset(@$staff_student->guardians_photo) : asset('/backEnd/id_card/img/thumb.png') }}); line-height:1.02; width: width: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 21.166666667}}mm; height: {{!empty($id_card->user_photo_height) ? $id_card->user_photo_height : 21.166666667}}mm; flex-basis: {{!empty($id_card->user_photo_width) ? $id_card->user_photo_width : 13.229166667}}mm; flex-grow: 0; flex-shrink: 0; margin-right: 20px; background-size: cover; background-position: center center;">
@if($id_card->student_name==1)

{{$staff_student->guardians_name}}

@endif

@if($id_card->phone_number == 1)

@lang('common.phone') : {{$staff_student->guardians_mobile}}

@endif
@php $studentInfos= App\SmStudentIdCard::studentName($staff_student->id); @endphp
@foreach ($studentInfos as $studentInfo)
student_photo) : asset('/backEnd/id_card/img/thumb.png') }});background-size: cover; background-position: center center; background-repeat: no-repeat; line-height:1.02; width: 45px; flex: 45px 0 0; height: 46px; margin: auto;border-radius: 50%; padding: 3px; align-content: center; justify-content: center; display: flex; border: 3px solid #fff;">

{{$studentInfo->full_name}}

@endforeach {{--

Amit Saha Bishal

Amit Saha Bishal

--}}
@if($id_card->student_address==1)

Al Khuwair, Muscat, Oman

Address

@endif
@endif @endif @endforeach
{{-- Js --}}