<?php
include($_SERVER['DOCUMENT_ROOT'] . "/API-Others/connection/conn.php");
include($_SERVER['DOCUMENT_ROOT'] . "/API-Others/connection/business-conn.php");
?>


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="author" content="Script Tutorials" />
    <title>School Home</title>
    <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: 200px;
    }




    #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);
        border: 1px solid rgb(201, 201, 201) !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: center !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: center !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);
        border: 1px solid #c3c3c3;
    }
</style>


<body style='background:none;'>
    <?php
    $idd = $_GET['idd'];
    $year = $_GET['year'];
    $month = $_GET['month'];

    $query = mysqli_query($conn, "SELECT * FROM user_login  WHERE idd = '" . $_SESSION['login_staff_id'] . "'");
    while ($spec = mysqli_fetch_assoc($query)) {
        $signature = $spec['Signature'];
        $fullname = $spec['FullName'];
        $role = $spec['Role'];
    }



    $query = mysqli_query($conn, "SELECT * FROM payroll_ssnit_deductions");
    while ($spec = mysqli_fetch_assoc($query)) {
        if ($spec['Description'] == "TotalSSNITContribution") {
            $TotalSSNITContributionPercentage = $spec['DeductionPercentage'];
        }

        if ($spec['Description'] == "EmployerSSNITContribution") {
            $EmployerSSNITContributionPercentage = $spec['DeductionPercentage'];
        }

        if ($spec['Description'] == "EmployeeSSNITContribution") {
            $EmployeeSSNITContributionPercentage = $spec['DeductionPercentage'];
        }

        if ($spec['Description'] == "Tier1EmployerSSNITContribution") {
            $Tier1EmployerSSNITContributionPercentage = $spec['DeductionPercentage'];
        }

        if ($spec['Description'] == "Tier1EmployeeSSNITContribution") {
            $Tier1EmployeeSSNITContributionPercentage = $spec['DeductionPercentage'];
        }

        if ($spec['Description'] == "Tier2EmployeeSSNITContribution") {
            $Tier2EmployeeSSNITContributionPercentage = $spec['DeductionPercentage'];
        }
    }

    ?>
    <div>
        <?php
        $query100 = mysqli_query($conn, "SELECT * FROM staff INNER JOIN payroll ON staff.unique_user_id = payroll.unique_user_id WHERE payroll.Year = '$year' AND payroll.Month = '$month' ORDER BY staff.role");
        while ($spec100 = mysqli_fetch_assoc($query100)) {
            $idd = $spec100['unique_user_id'];
            $title = $spec100['title'];
            $firstname = $spec100['first_name'];
            $lastname = $spec100['last_name'];
            $role = $spec100['role'];
            $ssnitnumber = $spec100['SsnitNumber'];
            $tinnumber = $spec100['TinNumber'];
            $bank = $spec100['Bank'];
        ?>
            <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-12' style='text-align:center; margin:0% auto;'>
                            <div style='margin-bottom:20px;'>
                                <img src='<?php echo $website_name; ?>/assets/images/booomers-logo.png ' width='160px' height='80px' style="margin:0% auto; border-radius:30px;">
                            </div>
                            <strong id='info_schoolname'><?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>

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



                        <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-10px !important;'>
                            <div class='col-md-12' style='text-align:left; padding:0px; '>
                                <label>EMPLOYEE NAME: </label> <input type='text' value='<?php echo  "" . $title . " " . $firstname . " " . $lastname . ""; ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 84%; text-align:center;'>
                            </div>

                        </div>


                        <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-15px !important;'>
                            <div class='col-md-3' style='text-align:left; padding:0px;'>
                                <label>ROLE: </label> <input type='text' value='<?php echo $role; ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 140px;'>
                            </div>

                            <div class='col-md-3' style='text-align:center; padding:0px;'>
                                <label>SSNIT: </label> <input type='text' value='<?php echo $ssnitnumber; ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 140px;'>
                            </div>

                            <div class='col-md-3' style='text-align:right; padding:0px;'>
                                <label>TIN: </label> <input type='text' value='<?php echo $tinnumber; ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 100px;'>
                            </div>

                            <div class='col-md-3' style='text-align:right; padding:0px;'>
                                <label>MONTH: </label> <input type='text' value='<?php echo Date('F, Y', strtotime(DATE('Y-' . $month . '-d'))); ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 100px;'>
                            </div>
                        </div>

                        <div class='row' style='font-size:70%; margin-top:20px;  margin-bottom:-15px !important;'>
                            <div class='col-md-7' style='text-align:left; padding:0px;'>
                                <label>BANK: </label> <input type='text' value='<?php echo  $bank; ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 355px;'>
                            </div>

                            <div class='col-md-5' style='text-align:left; padding:0px;'>
                                <label>GENERATED ON: </label> <input type='text' value='<?php echo Date('l, d, F, Y', strtotime(DATE('Y-m-d'))); ?>' id='report1_input' style='font-size:11px; font-weight:600; width: 210px;'>
                            </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" style="border:1px solid rgb(201, 201, 201) !important;">EARNNGS</th>
                                        <th id="table1_hd" style="border:1px solid rgb(201, 201, 201) !important;">GH&#8373;</th>
                                        <th id="table1_hd" style="border:1px solid rgb(201, 201, 201) !important;">DEDUCTIONS</th>
                                        <th id="table1_hd" style="border:1px solid rgb(201, 201, 201) !important;">GH&#8373;</th>

                                    </tr>

                                    <?php
                                    $query2 = mysqli_query($conn, "SELECT *  FROM payroll WHERE unique_user_id = '$idd' AND Year = '$year' AND Month = '$month'");
                                    while ($spec2 = mysqli_fetch_assoc($query2)) {
                                        $ssnitcontribution = $spec2['SsnitContribution'];
                                        $incometax = $spec2['PAYE'];
                                        $otherdeductions = $spec2['OtherDeductions'];
                                        $basicSalary = $spec2['BasicSalary'];
                                        $totaldeductions = $ssnitcontribution + $incometax + $otherdeductions;
                                        $EmployerSSNITContribution = $basicSalary * $EmployerSSNITContributionPercentage / 100;
                                        $EmployeeSSNITContribution = $basicSalary * $EmployeeSSNITContributionPercentage / 100;
                                        $Tier1EmployeeSSNITContribution = $basicSalary * $Tier1EmployeeSSNITContributionPercentage / 100;
                                        $Tier2EmployeeSSNITContribution = $basicSalary * $Tier2EmployeeSSNITContributionPercentage / 100;
                                        $TotalSSNITContribution = $basicSalary * $TotalSSNITContributionPercentage / 100;
                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'>Basic Salary</td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>" . number_format($spec2['BasicSalary'], 2, '.', ',') . "</span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>SSNIT Contribution</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:10px; '>" . number_format($spec2['SsnitContribution'], 2, '.', ',') . "</span></td>";
                                        echo "</tr>\n";

                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'>Allowances</td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>" . number_format($spec2['Allowances'], 2, '.', ',') . "</span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>Income Tax</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:10px;'>" . number_format($spec2['PAYE'], 2, '.', ',') . "</span></td>";
                                        echo "</tr>\n";

                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'></span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>Other Deductions</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:10px;'>" . number_format($spec2['OtherDeductions'], 2, '.', ',') . "</span></td>";
                                        echo "</tr>\n";

                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important; padding:10px !important;'></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;  padding:10px !important;'><span style='font-size:9px;'></span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;  padding:10px !important;'><span style='font-size:9px;'</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;  padding:10px !important;'><span style='font-size:10px;'></span></td>";

                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'>Total Earnings</td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>" . number_format($spec2['GrossSalary'], 2, '.', ',') . "</span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'>Total Deductions</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:10px;'>" . number_format($totaldeductions, 2, '.', ',') . "</span></td>";
                                        echo "</tr>\n";
                                        echo "</tr>\n";

                                        echo  "\t<tr id='trr'>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:9px;'></span></td>";
                                        echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'><span style='font-weight:600;'>NET / TAKE HOME SALARY</span></td>";
                                        echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'><span style='font-weight:600; border-bottom: 3px double #000000;'>" . number_format($spec2['NetSalary'], 2, '.', ',') . "</span></td>";
                                        echo "</tr>\n";
                                        echo "</tr>\n";
                                    }

                                    ?>

                                </table>




                                <table style="width:98%;  border: 1px solid rgba(198, 198, 198, 0.58) !important; margin-top:-30px;">


                                    <?php
                                    echo  "\t<tr id='trr'>";
                                    echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important;  border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:7px !important; font-weight:600;'>EMPLOYEE SSNIT DEDUCTIONS:</span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'> Tier 1 ($Tier1EmployeeSSNITContributionPercentage%): <span style='font-size:7px !important; font-weight:600;'>GH&#8373; <input type='text' value=" . number_format($Tier1EmployeeSSNITContribution, 2, '.', ',') . " style='border:none; font-size:10px; color:rgb(80, 80, 80); width:105px;' readonly></span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'> Tier 2 ($Tier2EmployeeSSNITContributionPercentage%): <span style='font-size:7px !important; font-weight:600;'>GH&#8373; <input type='text' value=" . number_format($Tier2EmployeeSSNITContribution, 2, '.', ',') . " style='border:none; font-size:10px; color:rgb(80, 80, 80);width:105px;' readonly></span></td>";
                                    echo "</tr>\n";

                                    echo  "\t<tr id='trr'>";
                                    echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'> <span style='font-size:7px !important; font-weight:600;'>EMPLOYER SSNIT DEDUCTIONS:</span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'> Tier 1 ($Tier1EmployerSSNITContributionPercentage%): <span style='font-size:7px !important; font-weight:600;'>GH&#8373; <input type='text' value=" . number_format($EmployerSSNITContribution, 2, '.', ',') . " style='border:none; font-size:10px; color:rgb(80, 80, 80); width:105px;' readonly></span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'></td>";
                                    echo "</tr>\n";

                                    echo  "\t<tr id='trr'>";
                                    echo "<td id='report_thh' style='background-color:rgba(173, 154, 50, 0.16) !important; border:1px solid rgb(201, 201, 201) !important;'><span style='font-size:7px !important; font-weight:600;'>TOTAL SSNIT CONTRIBUTIONS:</span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'> <span style='font-size:7px !important; font-weight:600;'>GH&#8373; <input type='text' value=" . number_format($TotalSSNITContribution, 2, '.', ',') . " style='border:none; font-size:10px; color:rgb(80, 80, 80); width:105px;' readonly></span></td>";
                                    echo "<td id='report_th' style='border:1px solid rgb(201, 201, 201) !important;'></td>";
                                    echo "</tr>\n";
                                    ?>

                                </table>

                            </div>

                        </div>

                        <div class='row' style='font-size:70%; margin-top:5px;'>
                            <div class='col-md-12' style='text-align:left; padding:0px; '>
                                <p style="text-align:left; font-size:10px;">I hereby declare that the information provided above is complete and accurate.</p>

                            </div>
                        </div>


                        <div class='row' style='font-size:70%; margin-top:15px; '>
                            <div class='col-md-6' style='text-align:left; padding:0px;'>
                                <?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;">SIGNATURE OF EMPLOYEE:</span>
                            </div>




                            <div class='col-md-6' style='text-align:right; padding:0px; '>
                                <?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-right:73px;">DIRECTOR:</span>
                            </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 :: 0302953234 :: info@aurarichconsult.com :: www.aurarichconsult.com</label></div>
                            </div>


                        </div>

                    </div>
                </div>
            </div>

        <?php } ?>


    </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 watermark = $('.school-logo-watermark').val();
        $('.watermark').attr("style", "background: url(https://schoolrobot.net/UPLOADS/schoollogos/" + watermark + ") no-repeat !important; background-position: center !important; background-size:50% !important;");

        $(".page").show();
        $.print(".page");
        setTimeout(function() {
            window.close();
        }, 1000);
    </script>
</body>

</html>