<!DOCTYPE html>
<html>
<head>
    <title> @if($role_id==2) @lang('student.student_id_card') @else @lang('hr.staff_ID') @endif</title>
    <link rel="stylesheet" href="{{asset('public/backEnd/')}}/vendors/css/bootstrap.css" />
    <!--<link rel="stylesheet" href="{{asset('public/backEnd/')}}/css/style.css" />-->
    <style media="print">
		/*body{*/
		/*	background: #fff;*/
		/*}*/
		@import url("https://fonts.googleapis.com/css?family=Poppins:300,400,400i,500,600");
        td{
            border-right: 1px solid #ddd; 
            border-left: 1px solid #ddd;
            border-bottom: 1px solid #ddd; 
            padding-top: 3px; padding-bottom: 3px;
        }
        table tr td{
            border: 0 !important; 
        }

    </style>
    <style>
        .id_card {
            display: grid !important;grid-template-columns: repeat(2,1fr) !important;grid-gap: 10px;justify-content: center;
        }
        input#button {
            margin: 20px 0;
        }
        td {
        font-size: 11px;
        padding: 0 12px;
        line-height: 18px;
        }
        body#abc {
            width: 100%;
            margin: auto;
        }
        table {
            width: 100%;
        }
    </style>
      <script>
        var is_chrome = function () { return Boolean(window.chrome); }
          if(is_chrome){
               window.print();
             
        }else{
           window.print();
        }
  </script>
</head>
<body id="abc">
        {{-- <input type="button" onclick="printDiv('abc')" id="button" class="primary-btn small fix-gr-bg" value="print" /> --}}

                <div class="id_card" id="id_card" style="display: grid !important;grid-template-columns: repeat(3,1fr) !important;grid-gap: {{$gridGap}}px;justify-content: center;">
                        @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')
                                    <div id="horizontal" style="margin: 0; padding: 0; font-family: 'Poppins', sans-serif; font-weight: 500;  font-size: 12px; line-height:1.02 ; color: #000">
                                        <div class="horizontal__card" style="line-height:1.02; background-image: url({{ @$id_card->background_img != "" ? asset(@$id_card->background_img) : asset('public/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;">
                                            <div class="horizontal_card_header" style="line-height:1.02; display: flex; align-items:center; justify-content:space-between; padding:8px 12px">
                                                <div class="logo__img logoImage hLogo" style="line-height:1.02; width: 80px; background-image: url({{$id_card->logo !=''? asset($id_card->logo) : asset('public/backEnd/img/logo.png')}});height: 30px; background-size: cover; background-repeat: no-repeat; background-position: center center;"></div>
                                                <div class="qr__img" style="line-height:1.02; width: 30px;">
                                                    <img src="{{asset('public/backEnd/id_card/img/qr.png')}}" alt="" style="line-height:1.02; width: 100%; width: 38px; position: absolute; right: 4px; top: 4px;">
                                                </div>
                                            </div>

                                            <div class="horizontal_card_body" style="line-height:1.02; display:flex; padding-top:{{!empty($id_card->t_space) ? $id_card->t_space : 2.5}}mm ; padding-bottom: {{!empty($id_card->b_space) ? $id_card->b_space : 2.5}}mm ; padding-right: {{!empty($id_card->r_space) ? $id_card->r_space : 3}}mm ; padding-left: {{!empty($id_card->l_space) ? $id_card->l_space : 3}}mm ; flex-direction: column;">
                                                <div class="thumb hRoundImg hSize photo hImg hRoundImg" style="
                                                @if (@$id_card->user_photo_style=='round')
                                                    {{"border-radius : 50%;"}}
                                                @endif
                                                background-image: url(
                                                    @if($role_id==2)
                                                        {{ @$staff_student->student_photo != "" ? asset(@$staff_student->student_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('public/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('public/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;"></div>
                                                <div class="card_text" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; flex-direction: column;">
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:25px; margin-bottom:10px">
                                                        <div class="card_text_left hId">
                                                            @if($id_card->student_name==1)
                                                                <div id="hName">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0px; font-size:11px; font-weight:600 ; text-transform: uppercase; color: #2656a6;">{{ $staff_student->full_name !=''? $staff_student->full_name :''}}</h4>
                                                                </div>
                                                            @endif
                                                            @if($id_card->admission_no==1 )
                                                                <div id="hAdmissionNumber">
                                                                    @if($role_id==2)
                                                                        <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('student.admission_no') : {{$staff_student->admission_no}}</h3>
                                                                    @else 
                                                                        <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('hr.staff_id') : {{$staff_student->staff_no}}</h3>
                                                                    @endif
                                                                </div>
                                                            @endif
                                                            @if($id_card->class==1 && $role_id==2)
                                                                <div id="hClass">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('common.class') : {{ @$staff_student->class!=""?@$staff_student->class->class_name:""}} 
                                                                        ({{ @$staff_student->section!=""?@$staff_student->section->section_name:""}})
                                                                    </h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="card_text_head hStudentName" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:10px"> 
                                                        <div class="card_text_left">
                                                            @if($id_card->father_name ==1)
                                                                <div id="hFatherName">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('student.father_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->fathers_name:""}}@else {{$staff_student->fathers_name}} @endif</h4>
                                                                </div>
                                                            @endif
                                                            @if($id_card->mother_name==1)
                                                                <div id="hMotherName">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:10px; font-weight:500">@lang('student.mother_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->mothers_name:""}} @else {{$staff_student->mothers_name}} @endif</h4>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:10px"> 
                                                        <div class="card_text_left">
                                                            @if($id_card->dob==1)
                                                                <div id="hDob">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('common.date_of_birth') :  {{@dateConvert($staff_student->date_of_birth)}}</h3>
                                                                </div>
                                                            @endif
                                                            @if($id_card->blood==1 && $role_id==2)
                                                                <div id="hBloodGroup">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('student.blood_group') : {{@$staff_student->bloodGroup!=""?@$staff_student->bloodGroup->base_setup_name:""}}</h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:5px"> 
                                                        @if($id_card->student_address==1)
                                                            <div class="card_text_left" id="hAddress">
                                                                <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 5px; font-size:10px; font-weight:500; text-transform:uppercase">{{@$staff_student->current_address!=""?@$staff_student->current_address:""}}</h3>
                                                                <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:9px; text-transform: uppercase; font-weight:500">@lang('common.address')</h4>
                                                            </div>
                                                        @endif
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="horizontal_card_footer" style="line-height:1.02; text-align: right;">
                                                <div class="singnature_img signPhoto hSign" style="background-image:url({{ $id_card->signature != "" ? asset($id_card->signature) : asset('public/backEnd/id_card/img/Signature.png') }});line-height:1.02; width: 50px; flex: 50px 0 0; margin-left: auto; position: absolute; right: 10px; bottom: 7px;height: 25px; background-size: cover; background-repeat: no-repeat; background-position: center center;"></div>
                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if($id_card->page_layout_style=='vertical')
                                    <div id="vertical"  style="margin: 0; padding: 0; font-family: 'Poppins', sans-serif;  font-size: 12px; line-height:1.02 ;">
                                        <div class="vertical__card" style="line-height:1.02; background-image: url({{ @$id_card->background_img != "" ? asset(@$id_card->background_img) : asset('public/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;">
                                            <div class="horizontal_card_header" style="line-height:1.02; display: flex; align-items:center; justify-content:space-between; padding: 12px">
                                                <div class="logo__img logoImage vLogo" style="line-height:1.02; width: 80px; background-image: url({{$id_card->logo !=''? asset($id_card->logo) : asset('public/backEnd/img/logo.png')}});background-size: cover; height: 30px;background-position: center center; background-repeat: no-repeat;"></div>
                                                <div class="qr__img" style="line-height:1.02; width: 48px; position: absolute; right: 4px; top: 4px;">
                                                    <img src="{{asset('public/backEnd/id_card/img/qr.png')}}" alt="" style="line-height:1.02; width: 100%;">
                                                </div>
                                            </div>
                                            <div class="vertical_card_body" style="line-height:1.02; display:flex; padding-top: {{!empty($id_card->t_space) ? $id_card->t_space : 2.5}}mm; padding-bottom: {{!empty($id_card->b_space) ? $id_card->b_space : 2.5}}mm; padding-right: {{!empty($id_card->r_space) ? $id_card->r_space : 3}}mm ; padding-left: {{!empty($id_card->l_space) ? $id_card->l_space : 3}}mm; align-items: center;">
                                                <div class="thumb vSize vSizeX photo vImg vRoundImg" style="
                                                @if (@$id_card->user_photo_style=='round')
                                                    {{"border-radius : 50%;"}}
                                                @endif
                                                background-image: url(
                                                    @if($role_id==2)
                                                        {{ @$staff_student->student_photo != "" ? asset(@$staff_student->student_photo) : (@$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('public/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('public/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;"></div>
                                                <div class="card_text" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; flex-direction: column;">
                                                    <div class="card_text_head" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:5px"> 
                                                        <div class="card_text_left vId">
                                                            @if($id_card->student_name==1)
                                                                <div id="vName">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:11px; font-weight:600 ; text-transform: uppercase; color: #2656a6;">{{$staff_student->full_name}}</h3>
                                                                </div>
                                                            @endif
                                                            @if($id_card->admission_no==1)
                                                                <div id="vAdmissionNumber">
                                                                    @if($role_id==2)
                                                                        <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px;">@lang('student.admission_no') : {{$staff_student->admission_no}}</h4>
                                                                    @else 
                                                                        <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px;">@lang('hr.staff_id') : {{$staff_student->staff_no}}</h4>
                                                                    @endif
                                                                </div>
                                                            @endif
                                                            @if($id_card->class==1 &&  $role_id==2)
                                                                <div id="vClass">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:10px;">@lang('common.class') : {{ @$staff_student->class!=""?@$staff_student->class->class_name:""}} 
                                                                        ({{ @$staff_student->section!=""?@$staff_student->section->section_name:""}})
                                                                    </h4>
                                                                </div>
                                                            @endif
                                                        </div>
                                                        <div class="card_text_right">
                                                        </br>
                                                            @if($id_card->dob==1)
                                                                <div id="vDob">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500;">@lang('common.date_of_birth') :  {{@dateConvert($staff_student->date_of_birth)}}</h3>
                                                                </div>
                                                            @endif
                                                            @if($id_card->blood==1 && $role_id==2)
                                                                <div id="vBloodGroup">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500;">@lang('student.blood_group') : {{@$staff_student->bloodGroup!=""?@$staff_student->bloodGroup->base_setup_name:""}}</h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>

                                                    <div class="card_text_head vStudentName" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:5px"> 
                                                        <div class="card_text_left">
                                                        </div>
                                                    </div>

                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:5px"> 
                                                        <div class="card_text_left">
                                                            @if($id_card->father_name ==1)
                                                                <div id="vFatherName">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('student.father_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->fathers_name:""}}@else {{$staff_student->fathers_name}} @endif</h3>
                                                                </div>
                                                            @endif
                                                            @if($id_card->mother_name==1)
                                                                <div id="vMotherName">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">@lang('student.mother_name') :@if($role_id==2) {{@$staff_student->parents !=""?@$staff_student->parents->mothers_name:""}} @else {{$staff_student->mothers_name}} @endif</h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                        <div class="card_text_right">

                                                        </div>
                                                    </div>
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:5px"> 
                                                        @if($id_card->student_address==1)
                                                        <div class="card_text_left vAddress">
                                                            <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 5px; font-size:10px; font-weight:500; text-transform:uppercase;">{{@$staff_student->current_address!=""?@$staff_student->current_address:""}} </h3>
                                                            <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:9px; text-transform: uppercase; font-weight:500">@lang('common.address')</h4>
                                                        </div>
                                                        @endif
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="horizontal_card_footer" style="line-height:1.02; text-align: right;">
                                                <div class="singnature_img signPhoto vSign" style="background-image: url({{ $id_card->signature != "" ? asset($id_card->signature) : asset('public/backEnd/id_card/img/Signature.png') }}); line-height:1.02; width: 50px; flex: 50px 0 0; margin-left: auto; position: absolute; right: 10px; bottom: 7px; height: 25px; background-size: cover; background-repeat: no-repeat; background-position: center center;">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                @endif
                            @else
                                @if($id_card->page_layout_style=='horizontal')
                                    <div id="gHorizontal" style="margin: 0; padding: 0; font-family: 'Poppins', sans-serif; font-weight: 500;  font-size: 12px; line-height:1.02 ; color: #000">
                                        <div class="horizontal__card" style="line-height:1.02; background-image: url({{ @$id_card->background_img != "" ? asset(@$id_card->background_img) : asset('public/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;">
                                            <div class="horizontal_card_header" style="line-height:1.02; display: flex; align-items:center; justify-content:space-between; padding:8px 12px">
                                                <div class="logo__img logoImage hLogo" style="line-height:1.02; width: 80px; background-image: url({{$id_card->logo !=''? asset($id_card->logo) : asset('public/backEnd/img/logo.png')}});height: 30px; background-size: cover; background-repeat: no-repeat; background-position: center center;"></div>
                                                <div class="qr__img" style="line-height:1.02; width: 30px;">
                                                    <img src="{{asset('public/backEnd/id_card/img/qr.png')}}" alt="" style="line-height:1.02; width: 100%; width: 38px; position: absolute; right: 4px; top: 4px;">
                                                </div>
                                            </div>
                                    
                                            <div class="horizontal_card_body" style="line-height:1.02; display:block; padding-top:{{!empty($id_card->t_space) ? $id_card->t_space : 2.5}}mm ; padding-bottom: {{!empty($id_card->b_space) ? $id_card->b_space : 2.5}}mm ; padding-right: {{!empty($id_card->r_space) ? $id_card->r_space : 3}}mm ; padding-left: {{!empty($id_card->l_space) ? $id_card->l_space : 3}}mm; flex-direction: column;">
                                                <div class="thumb hSize photo hImg hRoundImg" style="
                                                @if (@$id_card->user_photo_style=='round')
                                                    {{"border-radius : 50%;"}}
                                                @endif
                                                background-image: url({{ @$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('public/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;"></div>
                                                <div class="card_text" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; flex-direction: column;">
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:25px; margin-bottom:10px">
                                                        <div class="card_text_left hId">
                                                            @if($id_card->student_name==1)
                                                                <div id="gHName">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0px; font-size:11px; font-weight:600 ; text-transform: uppercase; color: #2656a6;">InfixEdu</h4>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>
                                    
                                                    <div class="card_text_head hStudentName" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:10px"> 
                                                        <div class="card_text_left">
                                                            {{-- <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 0px; font-size:11px; font-weight:600 ; text-transform: uppercase; color: #2656a6;">InfixEdu</h3> --}}
                                                            @if($id_card->phone_number == 1)
                                                                <div id="hPhoneNumber">
                                                                    <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500">phone : 0123456789</h4>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>
                                    
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:10px"> 
                                                        <div class="child__thumbs" style="display:flex; align-items: center; margin: 15px 0 20px 0; display: flex;
                                                            align-items: flex-start;
                                                            margin: 15px 0 2px 0;
                                                            justify-content: space-between;">
                                                            <div class="single__child" style="text-align: center; flex: 45px 0 0;">
                                                                <div class="single__child__thumb" style=" background-image: url('{{asset('public/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;">
                                                                </div>
                                                                <p style="font-size:12px; font-weight:400">Amit Saha Bishal</p>
                                                            </div>
                                                            <div class="single__child" style="text-align: center; flex: 45px 0 0;">
                                                                <div class="single__child__thumb" style=" background-image: url('{{asset('public/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;">
                                                                </div>
                                                                <p style="font-size:12px; font-weight:400">Amit Saha Bishal</p>
                                                            </div>
                                                            <div class="single__child" style="text-align: center; flex: 45px 0 0;">
                                                                <div class="single__child__thumb" style=" background-image: url('{{asset('public/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;">
                                                                </div>
                                                                <p style="font-size:12px; font-weight:400">Amit Saha Bishal</p>
                                                            </div>
                                                        </div>
                                                        {{-- <div class="card_text_right">
                                                            <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500;  text-transform: uppercase;font-weight:500; text-align:center;">B+</h3>
                                                            <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:9px; text-transform: uppercase; font-weight:500">Blood Group</h4>
                                                        </div> --}}
                                                    </div>
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:5px"> 
                                                        @if($id_card->student_address==1)
                                                            <div class="card_text_left" id="gHAddress">
                                                                <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 5px; font-size:10px; font-weight:500; text-transform:uppercase">89/2 Panthapath, Dhaka 1215, Bangladesh</h3>
                                                                <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:9px; text-transform: uppercase; font-weight:500">@lang('common.address')</h4>
                                                            </div>
                                                        @endif
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="horizontal_card_footer" style="line-height:1.02; text-align: right;">
                                                <div class="singnature_img signPhoto hSign" style="background-image:url('{{asset('public/backEnd/id_card/img/Signature.png')}}');line-height:1.02; width: 50px; flex: 50px 0 0; margin-left: auto; position: absolute; right: 10px; bottom: 7px;height: 25px; background-size: cover; background-repeat: no-repeat; background-position: center center;"></div>
                                            </div>
                                        </div>
                                    </div>
                                @endif
                                @if($id_card->page_layout_style=='vertical')
                                    <div id="gVertical" style="margin: 0; padding: 0; font-family: 'Poppins', sans-serif;  font-size: 12px; line-height:1.02 ;">
                                        <div class="vertical__card" style="line-height:1.02; background-image: url({{ @$id_card->background_img != "" ? asset(@$id_card->background_img) : asset('public/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;">
                                            <div class="horizontal_card_header" style="line-height:1.02; display: flex; align-items:center; justify-content:space-between; padding: 12px">
                                                <div class="logo__img logoImage vLogo" style="line-height:1.02; width: 80px; background-image: url({{$id_card->logo !=''? asset($id_card->logo) : asset('public/backEnd/img/logo.png')}});background-size: cover; height: 30px;background-position: center center; background-repeat: no-repeat;"></div>
                                                <div class="qr__img" style="line-height:1.02; width: 48px; position: absolute; right: 4px; top: 4px;">
                                                    <img src="{{asset('public/backEnd/id_card/img/qr.png')}}" alt="" style="line-height:1.02; width: 100%;">
                                                </div>
                                            </div>
                                            <div class="vertical_card_body" style="line-height:1.02; display:flex; padding-top:{{!empty($id_card->t_space) ? $id_card->t_space : 2.5}}mm ; padding-bottom: {{!empty($id_card->b_space) ? $id_card->b_space : 2.5}}mm ; padding-right: {{!empty($id_card->r_space) ? $id_card->r_space : 3}}mm ; padding-left: {{!empty($id_card->l_space) ? $id_card->l_space : 3}}mm; align-items: center;">
                                                <div class="thumb vSize vSizeX photo vImg vRoundImg" style="
                                                @if (@$id_card->user_photo_style=='round')
                                                    {{"border-radius : 50%;"}}
                                                @endif
                                                background-image: url({{ @$id_card->profile_image != "" ? asset(@$id_card->profile_image) : asset('public/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;"></div>
                                                <div class="card_text" style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; flex-direction: column;">
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom:0px"> 
                                                        <div class="card_text_left vId">
                                                            @if($id_card->student_name==1)
                                                                <div id="gVName">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:11px; font-weight:600 ; text-transform: uppercase; color: #2656a6;">{{$staff_student->guardians_name}}</h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                        <div class="card_text_right">
                                                            </br>
                                                            @if($id_card->phone_number == 1)
                                                                <div id="gVAddress">
                                                                    <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 3px; font-size:10px; font-weight:500;">@lang('common.phone') : {{$staff_student->guardians_mobile}}</h3>
                                                                </div>
                                                            @endif
                                                        </div>
                                                    </div>
                                                    @php
                                                        $studentInfos= App\SmStudentIdCard::studentName($staff_student->id);
                                                    @endphp
                                                    <div class="child__thumbs" style="display:flex; align-items: center; margin:  0px 0 0px 0; display: flex;
                                                        align-items: flex-start;
                                                        margin: 0px 0 0px 0;
                                                        justify-content: start;">
                                                        @foreach ($studentInfos as $studentInfo)
                                                            <div class="single__child" style="text-align: center; flex: 75px 0 0; ">
                                                                <div class="single__child__thumb" style=" background-image: url({{ @$studentInfo->student_photo != "" ? asset(@$studentInfo->student_photo) : asset('public/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;">
                                                                </div>
                                                                <p style="font-size:12px; font-weight:400; margin-bottom: 0;">{{$studentInfo->full_name}}</p>
                                                            </div>
                                                        @endforeach
                                                        
                                                        {{-- <div class="single__child" style="text-align: center;flex: 75px 0 0;">
                                                            <div class="single__child__thumb" style=" background-image: url('{{asset('public/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;">
                                                            </div>
                                                            <p style="font-size:12px; font-weight:400; margin-bottom: 0;">Amit Saha Bishal</p>
                                                        </div>
                                                        <div class="single__child" style="text-align: center;flex: 75px 0 0;">
                                                            <div class="single__child__thumb" style=" background-image: url('{{asset('public/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;">
                                                            </div>
                                                            <p style="font-size:12px; font-weight:400; margin-bottom: 0;">Amit Saha Bishal</p>
                                                        </div> --}}
                                                    </div>
                                    
                                                    <div class="card_text_head " style="line-height:1.02; display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top:5px"> 
                                                        @if($id_card->student_address==1)
                                                            <div class="card_text_left gVAddress">
                                                                <h3 style="line-height:1.02; margin-top: 0; margin-bottom: 5px; font-size:10px; font-weight:500; text-transform:uppercase;">89/2 Panthapath, Dhaka 1215, Bangladesh </h3>
                                                                <h4 style="line-height:1.02; margin-top: 0; margin-bottom: 0; font-size:9px; text-transform: uppercase; font-weight:500">Address</h4>
                                                            </div>
                                                        @endif
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="horizontal_card_footer" style="line-height:1.02; text-align: right;">
                                                <div class="singnature_img signPhoto vSign" style="background-image: url({{ $id_card->signature != "" ? asset($id_card->signature) : asset('public/backEnd/id_card/img/Signature.png') }}); line-height:1.02; width: 50px; flex: 50px 0 0; margin-left: auto; position: absolute; right: 10px; bottom: 7px; height: 25px; background-size: cover; background-repeat: no-repeat; background-position: center center;">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                @endif
                            @endif
                        @endforeach
                </div>

        {{-- Js --}}
        <script src="{{asset('public/backEnd/')}}/vendors/js/jquery-3.2.1.min.js"></script>
        <script>
            function printDiv(divName) {
                // document.getElementById("button").remove();
                var printContents = document.getElementById(divName).innerHTML;
                var originalContents = document.body.innerHTML;
                document.body.innerHTML = printContents;
                window.print();
                document.body.innerHTML = originalContents;
            }
        </script>
    </body>
</html>




