<?php
echo '<meta http-equiv="CONTENT-TYPE" content="text/html;charset=utf-8">';
echo '<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>';
?>
<style type="text/css">
    .container {
        width: 29.7cm;
        /*padding: 10px;*/
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        font-size: 14px !important;
        font-family: "Khmer OS Content" !important;
    }

    @page  {
        size: A4;
        margin: 20px;
    }

    @media  print {
        .container {
            width: 821px !important;
            font-size: 16px !important;
            font-family: "Khmer OS Content" !important;
        }

        table tr, td {
            font-size: 13px !important;
            border: 1px solid black !important;

        }
        th, td {
            padding: 5px;
            text-align: left;
        }

        p, span, b {
            font-size: 13px !important;

        }
    }

    @media  screen {
        .body {
            margin: auto;
            max-width: 25cm;
            height: 29.7cm;
            font-size: 14px;
            font-family: "Khmer OS Content" !important;
        }

        p {
            font-size: 15px;
            font-family: 'Khmer OS Battambang', Khmer OS;
        }
    }

    table tr, td {
        font-size: 14px !important;
        border: 1px solid black !important;
    }
    th, td {
        padding: 5px;
        text-align: left;
    }
    p, span, b {
        line-height: 22px !important;
        font-size: 14px !important;
    }

</style>

<div class="container" style="width: 821px;margin: 0 auto;">
    <div class="row">
        <div class="col-sm-12">
            <span class="text-center" style="font-family :'Khmer OS Muol Light' !important;">
               <h4> ព្រះរាជាណាចក្រកម្ពុជា </h4></span>
            <h2 class="text-center" style="font-family: 'Bowlby One';font-size: 16px!important;margin-top:-5px!important;">
                <b>KINGDOM OF CAMBODIA</b></h2>
            <h3 class="text-center" style="font-family:'Khmer OS Muol Light' !important;font-size:18px!important ;margin-top: -5px !important;" >ជាតិ​ សាសនា​
                ព្រះមហាក្សត្រ </h3>
            <h5 class="text-center" style="font-family:'Britannic Bold' !important; font-size: 16px;margin-top:-5px;">
                <b>Nation Religion King </b> </h5>

            <h6 class="text-center"
                style="font-family : 'Khmer OS Content' !important;font-size: 20px;margin-top:-5px;">ឡាវលុីន កូអិលធីដី</h6>
            <h2 class="text-center" style="font-family: 'Britannic Bold' !important; font-size: 14px;margin-top:-5px;">
                <b>LAOLIN CO.,LTD</b></h2>

            <h5 class="text-center" style="font: 14px bold; font-family: 'Khmer OS Muol'; margin-top:-5px;">
                <b>ទម្រង់សុំច្បាប់</b></h5>
            <h2 class="text-center" style="font-family: 'Bowlby One';font-size: 15px;margin-top:-5px;">
                <b> TAKE LEAVE FORM</b></h2>
            

            <br>
        </div>
        <div class="col-sm-12">
            <?php if($take_leave != ""): ?>
                <table style="width: 100%;">
                    <tr>
                        <td>Date: <?php echo e($take_leave->request_date ? date('d-m-Y', strtotime($take_leave->request_date)) : ''); ?></td>
                        <td></td>
                        <td></td>
                        <td style="text-align: right;">Branch: <?php echo e(optional($take_leave->get_branch_employee)->english_name); ?></td>
                    </tr>
                    <tr>
                        <td>Employee Code:</td>
                        <td><?php echo e(optional($take_leave->employee)->code); ?></td>
                        <td>Employee Name:</td>
                        <td><?php echo e(optional($take_leave->employee)->name); ?></td>
                    </tr>
                    <tr>
                        <td>Department:</td>
                        <td><?php echo e(optional($take_leave->get_department_employee)->english_name); ?></td>
                        <td>Position:</td>
                        <td><?php echo e(optional($take_leave->get_position_employee)->english_name); ?></td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            Reason for requested leave: (Please tick apropriate box)
                        </td>
                    </tr>
                    <tr>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 4): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Annual Leave</td>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 2): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Sick Leave</td>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 1): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Special Leave</td>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 3): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Maternity Leave</td>
                    </tr>
                    <tr>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 5): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Unpaid Leave</td>
                        <td><input type="checkbox" <?php if($take_leave->leave_type == 6): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Other Leave</td>
                        <td colspan="2">___________________________________________________</td>
                    </tr>
                    <tr>
                        <td colspan="4" style="border: 1px solid black;">Date Requested From: <?php echo e($take_leave->from_date ? date('d-m-Y', strtotime($take_leave->from_date)) : ''); ?>  
                            &nbsp;&nbsp;&nbsp;To: <?php echo e($take_leave->to_date ? date('d-m-Y', strtotime($take_leave->to_date)) : ''); ?>

                        </td>
                    </tr>
                    <tr>
                        <td style="text-align: right; height: 100px;" colspan="4">Employee Signature:__________________________ </td>
                    </tr>
                    <tr>
                        <td style="text-align: right;" colspan="4">Manager/Supervisor Approval: 
                            <input type="checkbox" <?php if($take_leave->approve == 1): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Approved &nbsp;&nbsp;&nbsp;
                            <input type="checkbox" <?php if($take_leave->approve == 2): ?> checked <?php else: ?> disabled <?php endif; ?>> &nbsp;&nbsp;&nbsp; Rejected
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4" style="border: 1px solid black; height: 200px; vertical-align: top;">Notes/Comments: </td>
                    </tr>
                </table>
            <?php endif; ?>
        </div>
    </div>
</div>

<div style="page-break-after:always !important"></div>
<script type="text/javascript">
    // window.print();
</script><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/take-leave/form-take-leave.blade.php ENDPATH**/ ?>