@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')
@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 && !moduleStatusCheck('Univeristy'))

@lang('common.class') : @foreach ($staff_student->getClassRecord as $record) {{ $record->class->class_name }} ({{ $record->section->section_name }}) , @endforeach

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

@lang('university::un.session') : @foreach ($staff_student->studentRecords as $record) {{ $record->unSession->name }} , @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 @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')
@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 }}) , @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 }} , @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->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')
@if ($id_card->student_name == 1)

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

@endif
@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
@if ($id_card->student_address == 1)

{{generalSetting()->address}}

@lang('common.address')

@endif
@endif @if ($id_card->page_layout_style == 'vertical')
@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)

{{ $studentInfo->full_name }}

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

Al Khuwair, Muscat, Oman

Address

@endif
@endif @endif @endforeach