<?php $__env->startSection('css'); ?>
    <style>
        .table-vaccine {
            margin-bottom: 20px;
            background-color: #efefef;
        }

        .table-vaccine tr td,
        .table-vaccine tr th {
            text-align: center;
            vertical-align: middle;
        }

        .table-vaccine tr th {
            padding: 5px;
            color: rgb(4, 34, 205);
            font-weight: 300;
        }

        .table-vaccine tr th span {
            color: black;
        }

        .table-vaccine tr th h3 {
            color: #980000;
        }
        @media  print {
            #print {
                display: none;
            }
        }
    </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content-header'); ?>
    <?php
    ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
    <div class="content-box">
        <div class="content-header">
            <h4>ទម្រង់ការឈប់ប្រចាំឆ្នាំ</h4>
        </div>
        <div class="content-body">
            <div style="margin-bottom:20px;display:inline-block"></div>

                <table class="table-nso">
                    <thead>
                        <tr>
                            <th rowspan="" width="5%">No</th>
                            <th width="20%">ឈ្មោះខ្មែរ <br>Name (KH)</th>
                            <th width="20%">ឈ្មោះអង់គ្លេស <br>Name (EN)</th>
                            <th width="20%">ចាប់ពី <br>From Date</th>
                            <th width="20%">ទៅដល់ <br>To Date</th>
                            <th width="20%">ចំនួនថ្ងៃ <br>Days</th>
                        </tr>
                    </thead>
                    <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $hol; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <?php
                            $date1 = $row->from_date ? date('d-m-Y', strtotime($row->from_date)) : date('d-m-Y', now());
                            $date2 = $row->to_date ? date('d-m-Y', strtotime($row->to_date)) : date('d-m-Y', now());
                        ?>
                        <tr>
                            <td><?php echo e($key+1); ?></td>
                            <td><?php echo e($row->name_kh); ?></td>
                            <td><?php echo e($row->name_en); ?></td>
                            <td><?php echo e($row->from_date ? date('d-m-y', strtotime($row->from_date)) : ''); ?></td>
                            <td><?php echo e($row->to_date ? date('d-m-Y', strtotime($row->to_date)) : ''); ?></td>
                            <td><?php echo e(dateDiffInDays($date1, $date2)); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="5">No Data</td>
                        </tr>
                    <?php endif; ?>
                    </tbody>
                </table>

            <div class="div-12" style="margin-top: 10px;">
                <div class="div-4">&nbsp;</div>
                <div class="div-4">&nbsp;</div>
                <div class="div-4"></div>
            </div>
            <div class="div-12" style="text-align:right;margin-top:30px">
                ភ្នំពេញ <?php echo e('ថ្ងៃ '.\App\Helpers\IDate::getDayNameKH(now()).' ទី '.date('d', strtotime(now())).' ខែ '. \App\Helpers\IDate::getMonthNameKH(now()).' ឆ្នាំ​ '.date('Y', strtotime(now()))); ?>

            </div>
            <div class="div-12">
                <div class="div-9">
                </div>
                <div class="div-3" style="float: right;">
                    <div class="text-right">
                        <p style="text-align: center;line-height:30px;margin-bottom:65px">HR</p>
                        <p style="text-align: center;"><?php echo e(\Auth::user()->name); ?></p>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-footer" style="margin-top: 45px;">

        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script>

    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.invoice', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/holiday/print.blade.php ENDPATH**/ ?>