<?php
include($_SERVER['DOCUMENT_ROOT'] . "/COMPONENTS/root/path.php");
echo "<h5 class='userId' style='display:none;'>" . $_GET['userId'] . "</h5>";
?>
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="author" content="Booomers">
    <meta property="og:url" content="https://booomers.com/pages/product-care">
    <meta property="og:site_name" content="Booomers">
    <meta property="og:type" content="article">
    <meta property="og:title" content="ERP">
    <meta property="og:description" content="ERP, or Enterprise Resource Planning, is a software system that integrates various business processes and functions within an organization. It allows for the efficient management of resources, such as finances, human resources, manufacturing, supply chain, customer relationship management, and more.">
    <!-- Mobile Specific Metas -->
    <meta name="HandheldFriendly" content="True">
    <meta name="MobileOptimized" content="320">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <meta name="theme-color" content="#ffffff">

    <!-- Stylesheets for Retina 4.6.2 -->
    <!--[if lte IE 9]>
      <link href="//cdn.shopify.com/s/files/1/0266/8632/4820/t/6/assets/ie.css?v=16370617434440559491641854573" rel="stylesheet" type="text/css" media="all" />
    <![endif]-->


    <link rel="shortcut icon" type="image/x-icon" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_180x180.jpg?v=1613532402">
    <link rel="apple-touch-icon" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_180x180.jpg?v=1613532402" />
    <link rel="apple-touch-icon" sizes="72x72" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_72x72.jpg?v=1613532402" />
    <link rel="apple-touch-icon" sizes="114x114" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_114x114.jpg?v=1613532402" />
    <link rel="apple-touch-icon" sizes="180x180" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_180x180.jpg?v=1613532402" />
    <link rel="apple-touch-icon" sizes="228x228" href="//cdn.shopify.com/s/files/1/0266/8632/4820/files/booomers-fav_228x228.jpg?v=1613532402" />
    <title class="tabTitle"></title>
    <meta content="" name="descriptison">
    <meta content="" name="keywords">
    <link href="<?php $_SERVER['DOCUMENT_ROOT']; ?>/dist/js/jQuery.print-master/css/bootstrap.min.css" rel="stylesheet">

</head>

<style>
    body {
        padding-left: 25px;
        padding-right: 25px;
        padding-top: 15px;
    }

    @media print {

        @page {
            size: A4;
            margin: 0mm;
        }

        html,
        body {

            width: 210mm;
            height: 99%;
            margin: 0 auto;
            line-height: 1em;
            word-spacing: 1px;
            letter-spacing: 0.2px;

            background: white;
            color: black;
            width: 100%;
            float: none;
        }





        @-moz-document url-prefix() {}

        .col-sm-1,
        .col-sm-2,
        .col-sm-3,
        .col-sm-4,
        .col-sm-5,
        .col-sm-6,
        .col-sm-7,
        .col-sm-8,
        .col-sm-9,
        .col-sm-10,
        .col-sm-11,
        .col-sm-12,
        .col-md-1,
        .col-md-2,
        .col-md-3,
        .col-md-4,
        .col-md-5,
        .col-md-6,
        .col-md-7,
        .col-md-8,
        .col-md-9,
        .col-md-10,
        .col-md-11,
        .col-smdm-12 {
            float: left;
        }

        .col-sm-12,
        .col-md-12 {
            width: 100%;
        }

        .col-sm-11,
        .col-md-11 {
            width: 91.66666667%;
        }

        .col-sm-10,
        .col-md-10 {
            width: 83.33333333%;
        }

        .col-sm-9,
        .col-md-9 {
            width: 75%;
        }

        .col-sm-8,
        .col-md-8 {
            width: 66.66666667%;
        }

        .col-sm-7,
        .col-md-7 {
            width: 58.33333333%;
        }

        .col-sm-6,
        .col-md-6 {
            width: 50%;
        }

        .col-sm-5,
        .col-md-5 {
            width: 41.66666667%;
        }

        .col-sm-4,
        .col-md-4 {
            width: 33.33333333%;
        }

        .col-sm-3,
        .col-md-3 {
            width: 25%;
        }

        .col-sm-2,
        .col-md-2 {
            width: 16.66666667%;
        }

        .col-sm-1,
        .col-md-1 {
            width: 8.33333333%;
        }

        .col-sm-pull-12 {
            right: 100%;
        }

        .col-sm-pull-11 {
            right: 91.66666667%;
        }

        .col-sm-pull-10 {
            right: 83.33333333%;
        }

        .col-sm-pull-9 {
            right: 75%;
        }

        .col-sm-pull-8 {
            right: 66.66666667%;
        }

        .col-sm-pull-7 {
            right: 58.33333333%;
        }

        .col-sm-pull-6 {
            right: 50%;
        }

        .col-sm-pull-5 {
            right: 41.66666667%;
        }

        .col-sm-pull-4 {
            right: 33.33333333%;
        }

        .col-sm-pull-3 {
            right: 25%;
        }

        .col-sm-pull-2 {
            right: 16.66666667%;
        }

        .col-sm-pull-1 {
            right: 8.33333333%;
        }

        .col-sm-pull-0 {
            right: auto;
        }

        .col-sm-push-12 {
            left: 100%;
        }

        .col-sm-push-11 {
            left: 91.66666667%;
        }

        .col-sm-push-10 {
            left: 83.33333333%;
        }

        .col-sm-push-9 {
            left: 75%;
        }

        .col-sm-push-8 {
            left: 66.66666667%;
        }

        .col-sm-push-7 {
            left: 58.33333333%;
        }

        .col-sm-push-6 {
            left: 50%;
        }

        .col-sm-push-5 {
            left: 41.66666667%;
        }

        .col-sm-push-4 {
            left: 33.33333333%;
        }

        .col-sm-push-3 {
            left: 25%;
        }

        .col-sm-push-2 {
            left: 16.66666667%;
        }

        .col-sm-push-1 {
            left: 8.33333333%;
        }

        .col-sm-push-0 {
            left: auto;
        }

        .col-sm-offset-12 {
            margin-left: 100%;
        }

        .col-sm-offset-11 {
            margin-left: 91.66666667%;
        }

        .col-sm-offset-10 {
            margin-left: 83.33333333%;
        }

        .col-sm-offset-9 {
            margin-left: 75%;
        }

        .col-sm-offset-8 {
            margin-left: 66.66666667%;
        }

        .col-sm-offset-7 {
            margin-left: 58.33333333%;
        }

        .col-sm-offset-6 {
            margin-left: 50%;
        }

        .col-sm-offset-5 {
            margin-left: 41.66666667%;
        }

        .col-sm-offset-4 {
            margin-left: 33.33333333%;
        }

        .col-sm-offset-3 {
            margin-left: 25%;
        }

        .col-sm-offset-2 {
            margin-left: 16.66666667%;
        }

        .col-sm-offset-1 {
            margin-left: 8.33333333%;
        }

        .col-sm-offset-0 {
            margin-left: 0%;
        }

        .visible-xs {
            display: none !important;
        }

        .hidden-xs {
            display: block !important;
        }

        table.hidden-xs {
            display: table;
        }

        tr.hidden-xs {
            display: table-row !important;
        }

        th.hidden-xs,
        td.hidden-xs {
            display: table-cell !important;
        }

        .hidden-xs.hidden-print {
            display: none !important;
        }

        .hidden-sm {
            display: none !important;
        }

        .visible-sm {
            display: block !important;
        }

        table.visible-sm {
            display: table;
        }

        tr.visible-sm {
            display: table-row !important;
        }

        th.visible-sm,
        td.visible-sm {
            display: table-cell !important;
        }


    }


    .watermark {

        display: block;
        margin-bottom: 0.5cm;


    }

    .content {
        height: 1320px;
        border: 1px solid black;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.88);
        padding: 40px;
        box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);

    }


    .content1 {
        height: 1100px;
        border: 1px solid black;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.98) !important;
        padding: 40px;
        display: block;
        margin: 0 auto;
        margin-bottom: 0.5cm;
        box-shadow: 0 0 0.5cm rgba(0, 0, 0, 0.5);
        page-break-after: after;
    }



    .content3 {

        border: 1px solid black;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.88);
        padding: 10px;
        padding-left: 50px;
        padding-right: 50px;
    }

    /*
    .col-md-4,.col-md-2,.col-md-6,.col-md-12{
        border:1px solid black;
    }
      */



    #report1_input {
        border: none;
        border-bottom-style: groove;
        padding-left: 5px;
        background: none;
        width: 130px;
    }




    #info_bill {
        color: black !important;
        height: 40px;
        margin-top: 20px;
        padding: 0px;
        width: 100%;
        /* background: white !important; */
        border: 5px solid black !important;
        font-weight: 800;
    }

    #info_bill1 {
        color: black !important;
        margin-top: 7px;
    }

    table {
        font-family: Arial, Helvetica, sans-serif !important;
        border-collapse: collapse !important;
        width: 100% !important;
        /* box-shadow: 0 1px 9px 1px rgba(0, 0, 0, 0.13) !important; */
        border: none !important;
        background: rgba(255, 255, 255, 0) !important;
        margin-bottom: 30px !important;


    }

    td,
    th {
        border: 1px solid rgba(221, 221, 221, 0.06) !important;
        padding: 8px !important;
        text-align: left !important;
    }

    tr:nth-child(even) {
        background-color: #f2f2f2 !important;
    }

    tr:hover {
        background-color: #ddd !important;
    }

    th {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
        text-align: left !important;
        background-color: #4CAF50 !important;
        color: white !important;
        text-align: left !important;
    }

    td {
        padding: 3px !important;
        font-weight: 500;
        color: #414141 !important;
        font-size: 11px !important;
    }


    #info_schoolname {
        font-size: 20px;
        padding: 1px 1px 1px;
    }


    #address {
        font-size: 18px;
    }

    img {
        /* box-shadow: 0 1px 9px 1px rgba(0, 0, 0, 0.15) !important; */
        border: 1px solid #c3c3c3;
    }



    .avatar-upload .avatar-preview {
        width: 180px;
        height: 210px;
        position: relative;
        border: 6px solid #F8F8F8;
        -webkit-box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
        box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
    }

    .avatar-upload .avatar-preview>div {
        width: 100% !important;
        height: 100% !important;

        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center !important;
    }
</style>


<body style="background:none;">

    <div style='display:none;'>
        <div class='page' style='display:none;'>
            <input type='text' class='school-logo-watermark' value="<?php echo $image ?>" style='display:none;'>

            <div class='row watermark' id='watermark'>
                <div class='col-md-12 content1 ' id='content'>

                    <div class="row">
                        <div class='col-md-3'>
                            <!-- <img src="<?php $_SERVER['DOCUMENT_ROOT']; ?>/assets/images/Transfer2TransformLogo-03.png" alt="user" class="" width='130px' height='40px' style="margin:25% auto;"> -->
                        </div>

                        <div class='col-md-6' style='text-align:center; '>
                            <p><img src="<?php $_SERVER['DOCUMENT_ROOT']; ?>/assets/images/<?php echo $image; ?>" alt="user" class="" width='200px' height='60px'></p>
                            <strong id='info_schoolname' style='text-transform:uppercase;'><?php echo $businessname; ?></strong><br><br>
                            <p id='address' style='margin-top:-5px !important; font-size:14px;'><i class="fa fa-map-marker fa-1x" style="color:rgb(90, 90, 90)"></i> <?php echo $address; ?></p>
                            <p id='address' style='margin-top:-5px !important; font-size:14px;'><i class="fa fa-phone fa-1x" style="color:rgb(90, 90, 90)"></i> <?php echo $phone; ?></p>
                            <p id='address' style='margin-top:-5px !important; font-size:14px;'><u><i class="fa fa-envelope fa-1x" style="color:rgb(90, 90, 90)"></i> <?php echo $email; ?></u></p>
                            <p id='address' style='margin-top:-0px !important; font-size:14px;'><i class="fa fa-map fa-1x" style="color:rgb(90, 90, 90)"></i> <?php echo $location; ?></p><br>
                        </div>

                        <div class='col-md-3' style='text-align:right'>
                            <!-- <img class='profilePhoto' width='130px' height='140px' style='border-radius:30px;'> -->
                        </div>
                    </div>

                    <div class='row' style='margin-bottom:2px !important;'>
                        <div class='col-md-12' style='text-align:center;  padding:0px; '>
                            <p id=form><u><b Style="font-size:20px;">CANDIDATE PROFILE</b></u></p>
                        </div>
                    </div>



                    <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-15px !important;'>

                        <div class="col-md-4" style="text-align:center;">
                            <div class="avatar-upload">
                                <div class="avatar-preview ">
                                    <div id="imagePreview" class="imagePreview"></div>
                                </div>
                            </div>
                        </div>
                        <div class='col-md-8' style=' padding:0px;'>
                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">A. BASIC INFO</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>


                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>UNIQUE USER ID:</span> <span class="staff_id">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>DATE OF BIRTH:</span> <span class="dob">N/A</span>
                                            </div>
                                        </div>

                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>GENDER:</span> <span class="gender">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>EMAIL:</span> <span class="email">N/A</span>
                                            </div>
                                        </div>

                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>MOBILE NUMBER:</span> <span class="phone">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>WHATSAPP NUMBER:</span> <span class="whatsapp_no">N/A</span>
                                            </div>
                                        </div>

                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>COUNTRY:</span> <span class="country">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>ADDRESS:</span> <span class="address">N/A</span>
                                            </div>
                                        </div>
                                    </td>
                                </tr>

                            </table>


                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; margin-top:-15px;">
                                <tr>
                                    <th id="table1_hd">B. JOB DETAILS</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>


                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>JOB TITlE / POSITION:</span> <span class="role">N/A</span>
                                            </div>
                                            <div class='col-md-6'>
                                                <span style='font-weight:600 !important;'>DEPARTMENT:</span> <span class="department">N/A</span>
                                            </div>

                                            <div class='col-md-6'>
                                                <span style='font-weight:600 !important;'>EMPLOYMENT STATUS:</span> <span class="employment_status">N/A</span>
                                            </div>
                                        </div>

                                    </td>
                                </tr>

                            </table>

                        </div>


                    </div>



                    <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-15px !important;'>

                        <div class='col-md-6' style=' padding:0px; '>
                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">C. EDUCATION INFO</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>HIGHEST EDUCATION:</span> <span class="dob">N/A</span>
                                            </div>
                                        </div>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>START DATE</span> <span class="passport_issued_no">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>END DATE:</span> <span class="passport_issued_date">N/A</span>
                                            </div>

                                        </div>

                                    </td>
                                </tr>

                            </table>

                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">D. EXPERIENCE</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>
                                        <div class="experience_area"></div>


                                    </td>
                                </tr>

                            </table>
                        </div>

                        <div class='col-md-6' style=' padding:0px; '>
                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">E. PAYROLL & COMPENSATION</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>SALARY / WAGE INFORMATION:</span> <span class="salary_wage_information">N/A</span>
                                            </div>
                                        </div>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>BANK ACCOUNT DETAILS: </span> <span class="bank_account_details">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>SSNIT NUMBER:</span> <span class="ssnit_number">N/A</span>
                                            </div>

                                        </div>

                                    </td>
                                </tr>

                            </table>

                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">F. HEALTH & SAFETY</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>MEDICAL CONDITIONS / ALLERGIES:</span> <span class="dob">N/A</span>
                                            </div>
                                        </div>
                                        <div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>SAFETY TRAINING COMPLETION:</span> <span class="passport_issued_no">N/A</span>
                                            </div>
                                            <div class='col-md-12'>
                                                <span style='font-weight:600 !important;'>EMERGENCY CONTACT:</span> <span class="passport_issued_date">N/A</span>
                                            </div>

                                        </div>

                                    </td>
                                </tr>

                            </table>
                        </div>


                        <div class='col-md-12' style=' padding:0px; '>
                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">G. WORK HISTORY / PREVOIUS EMPLOYMENT DETAILS</th>

                                </tr>

                                <tr>
                                    <td id='report_thh'>
                                        <div class="work_experience"></div>


                                    </td>
                                </tr>

                            </table>
                        </div>

                    </div>




                    <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-15px !important;'>
                        <div class='col-md-12' style=' padding:0px; '>
                            <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; ">
                                <tr>
                                    <th id="table1_hd">OFFICE USE ONLY</th>

                                </tr>


                            </table>
                            <div class='row' style='font-size:70%; margin-top:-25px; '>
                                <div class='col-md-6' style='text-align:left; '>
                                    <?php if (empty($signature)) { ?>
                                        <input type="text" style="width:200px;  border-bottom-style:dotted; margin-top:40px !important;" value='' class="report1_input" id="class_teacher_sign" name='teacher_sign' readonly><br><br>
                                    <?php } else { ?>

                                        <img src="<?php $_SERVER['DOCUMENT_ROOT'] ?>/UPLOADS/signature/<?php echo $signature; ?>" style="width:200px;  border-bottom-style:dotted; border:none !important; box-shadow:none !important;"><br><br>
                                    <?php } ?>
                                    <span style="margin-left:23px;">ADMIN SIGNATURE:</span>
                                </div>


                                <div class='col-md-6' style='text-align:right;  '>
                                    <?php if (empty($head_teacher_signature)) { ?>
                                        <input type="text" style="width:200px;  border-bottom-style:dotted; margin-top:40px !important;" value='' class="report1_input" id="class_teacher_sign" name='teacher_sign' readonly><br><br>
                                    <?php } else { ?>

                                        <img src="<?php $_SERVER['DOCUMENT_ROOT'] ?>/UPLOADS/signature/<?php echo $head_teacher_signature; ?>" style="width:200px;  border-bottom-style:dotted; border:none !important; box-shadow:none !important;"><br><br>
                                    <?php } ?>
                                    <span style="margin-left:23px;">DIRECTOR'S SIGNATURE:</span>
                                </div>
                            </div>
                        </div>



                    </div>



                    <div class='row' style='font-size:70%; margin-top:15px;'>
                        <div class='col-md-12' style='text-align:center; padding:0px;'>
                            <div style="text-align:center; padding:1px 1px 1px;"><label style="font-size:10px !important; color:#5d5d5d !important;">SOFTWARE BY: aura-rich consult & Technologies :: 0556960450 :: info@aurarichconsult.com :: www.aurarichconsult.com</label></div>
                        </div>
                    </div>

                </div>
            </div>


        </div>
    </div>

    <script src="<?php $_SERVER['DOCUMENT_ROOT']; ?>/dist/js/jQuery.print-master/jquery-1.11.2.min.js"></script>
    <script src="<?php $_SERVER['DOCUMENT_ROOT']; ?>/dist/js/jQuery.print-master/jQuery.print.js"></script>


    <script>
        var userId = $('.userId').html();
        $.getJSON(domain_api + "/staff/staff.php?userId=" + encodeURIComponent(userId), function(data) {
            sessionStorage.setItem("role", data.staff_information[0].role);
            sessionStorage.setItem("department", data.staff_information[0].department);
            sessionStorage.setItem("employment_status", data.staff_information[0].employment_status);
            sessionStorage.setItem("profile_photo", data.staff_information[0].profile_photo);
            sessionStorage.setItem("unique_user_id", data.staff_information[0].unique_user_id);
            sessionStorage.setItem("email", data.staff_information[0].email);
            sessionStorage.setItem("phone", data.staff_information[0].phone);
            sessionStorage.setItem("whatsapp_no", data.staff_information[0].whatsapp_no);
            sessionStorage.setItem("title", data.staff_information[0].title);
            sessionStorage.setItem("first_name", data.staff_information[0].first_name);
            sessionStorage.setItem("middle_name", data.staff_information[0].middle_name);
            sessionStorage.setItem("last_name", data.staff_information[0].last_name);
            sessionStorage.setItem("gender", data.staff_information[0].gender);
            sessionStorage.setItem("nationality", data.staff_information[0].nationality);
            sessionStorage.setItem("address", data.staff_information[0].address);
            sessionStorage.setItem("dob", data.staff_information[0].dob);
            sessionStorage.setItem("status_id", data.staff_information[0].status_id);
            sessionStorage.setItem("status", data.staff_information[0].status);
            sessionStorage.setItem("date_of_application", data.staff_information[0].date_of_application);
            sessionStorage.setItem("date_edited", data.staff_information[0].date_edited);
            sessionStorage.setItem("qualification", data.staff_information[0].qualification);
            sessionStorage.setItem("salary_wage_information", data.staff_information[0].salary_wage_information);
            sessionStorage.setItem("bank_account_details", data.staff_information[0].bank_account_details);
            sessionStorage.setItem("ssnit_number", data.staff_information[0].ssnit_number);
            sessionStorage.setItem("medical_conditions_allergies", data.staff_information[0].medical_conditions_allergies);
            sessionStorage.setItem("safety_training_completion", data.staff_information[0].safety_training_completion);
            sessionStorage.setItem("emergency_phone", data.staff_information[0].emergency_phone);


            var role = sessionStorage.getItem("role");
            var department = sessionStorage.getItem("department");
            var employment_status = sessionStorage.getItem("employment_status");
            var profile_photo = sessionStorage.getItem("profile_photo");
            var unique_user_id = sessionStorage.getItem("unique_user_id");
            var email = sessionStorage.getItem("email");
            var phone = sessionStorage.getItem("phone");
            var whatsapp_no = sessionStorage.getItem("whatsapp_no");
            var title = sessionStorage.getItem("title");
            var first_name = sessionStorage.getItem("first_name");
            var middle_name = sessionStorage.getItem("middle_name");
            var last_name = sessionStorage.getItem("last_name");
            var gender = sessionStorage.getItem("gender");
            var nationality = sessionStorage.getItem("nationality");
            var address = sessionStorage.getItem("address");
            var dob = sessionStorage.getItem("dob");
            var status_id = sessionStorage.getItem("status_id");
            var status = sessionStorage.getItem("status");
            var date_of_application = sessionStorage.getItem("date_of_application");
            var date_edited = sessionStorage.getItem("date_edited");
            var qualification = sessionStorage.getItem("qualification");
            var salary_wage_information = sessionStorage.getItem("salary_wage_information");
            var bank_account_details = sessionStorage.getItem("bank_account_details");
            var ssnit_number = sessionStorage.getItem("ssnit_number");
            var medical_conditions_allergies = sessionStorage.getItem("medical_conditions_allergies");
            var safety_training_completion = sessionStorage.getItem("safety_training_completion");
            var emergency_phone = sessionStorage.getItem("emergency_phone");

            $('.imagePreview').attr('style', "background: url(" + domain_api + "/uploads/profile-photos/" + encodeURIComponent(profile_photo) + ") no-repeat !important; background-position: center !important; background-size:99% !important");
            $(".fullname").html(title + " " + first_name + " " + middle_name + " " + last_name + "");
            $(".staff_id").html(unique_user_id);
            $(".country").html(nationality);
            $(".role").html(role);
            $(".department").html(department);
            $(".employment_status").html(employment_status);
            $(".gender").html(gender);
            $(".email").html(email);
            $(".phone").html(phone);
            $(".address").html(address);
            $(".whatsapp_no").html(whatsapp_no);
            $(".qualification").html(qualification);
            $(".experience_area").empty();
            $.each(data.experience, function(key, value) {
                $(".experience_area").append("<div class='row' style='font-size:9px !important; margin-bottom:2px !important;'>" +
                    "<div class='col-md-12'>" +
                    "<span style='font-weight:600 !important;'>SKILL / EXPERIENCE 1:</span> <span>" + value.experience_area + "</span>" +
                    "</div>" +
                    "</div>")
            });
            $(".dob").html(dob);
            $(".status").html(status);
            $(".salary_wage_information").html("GH&#8373; " + salary_wage_information);
            $(".bank_account_details").html(bank_account_details);
            $(".ssnit_number").html(ssnit_number);
            $(".medical_conditions_allergies").html(medical_conditions_allergies);
            $(".safety_training_completion").html(safety_training_completion);
            $(".emergency_phone").html(emergency_phone);

            $(".work_experience").empty();
            $.each(data.work_experience, function(key, value) {
                $(".work_experience").append(
                    "<div class='col-md-12'>" +
                    "<span style='font-weight:600 !important;'>Job 1:</span> <span>" + value.work_history + " (" + value.date_from + " - " + value.date_to + ")</span>" +
                    "</div>" +
                    "</div>")
                    
                
            });

            $(".page").show();
            $.print(".page");
        });

       
        setTimeout(function() {
            window.close();
        }, 1000);
    </script>

</body>

</html>