<?php if(count($em['em_id']) > 0): ?>
    <div id="DivIdToPrint">
        <style>
            @page  {
                size: auto;
                margin: 10px auto;
            }
            @media  print {
                html, body {
                    width: 210mm;
                    height: 297mm;
                    
                }
                .page-break{
                    page-break-before: always;
                }
            }
            table {
                border-collapse: collapse;
            }

            table, th, td {
                
            }
            table thead th {
                border: none;
            }
            .container{
                width: 1024px;
                margin: 0 auto;
                
            }
            .battambong
            {
                font-family: khmer os battambang !important;
                font-size: 12px;
            }
            .arial
            {
                font-family: Arial, Helvetica, sans-serif, khmer os battambang !important;
                font-size: 12px;
            }
        </style>
        <div class="col-sm-12 col-xs-12">
            <div class="wrapper-table">
                <table id="print_table" class="table table-bordered"  border="1" style="width: 100%;border-collapse: collapse;">
                    <?php
                    $month = array('01' => 'January', 
                                    '02' => 'February', 
                                    '03' => 'March', 
                                    '04' => 'April', 
                                    '05' => 'May', 
                                    '06' => 'June',
                                    '07' => 'July', 
                                    '08' => 'August', 
                                    '09' => 'September', 
                                    '10' => 'October', 
                                    '11' => 'November', 
                                    '12' => 'December');
                    ?>

                    <tr>
                        <th style ="width: 50px;text-align: center">#</th>
                        <th style ="width: 50px;text-align: center">Employee</th>
                        <?php $__currentLoopData = $month; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val => $m): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <th style="width: 50px;text-align: center"><?php echo e($m); ?></th>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tr>
                    <?php $__currentLoopData = $em['rows']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($key+1); ?></td>
                            <td><?php echo e($row->name); ?></td>
                            <?php $total = 0; ?>
                            <?php $__currentLoopData = $month; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $val => $k): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php
                                    $y = date('Y');
                                    $last_day   = App\Helpers\IDate::getLastDayMonth("$y/$val/01");
                                    $leave      = App\Model\Hr\EmpLeave::getLeaveByMonth($row->id,$last_day,$y);
                                ?>
                                <td style="width: 50px;text-align: center"><?php echo e($leave); ?></td>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </table>
            </div>
        </div>
    </div>
<?php else: ?>
    <h1>No data!!</h1>
<?php endif; ?><?php /**PATH /home/nsowos/public_html/shr-brand/resources/views/hr/report-attendance/annual-leave-show.blade.php ENDPATH**/ ?>