<?php

    $element_points = [
        'Hari Kerja',
        'Hari Kerja Shift II',
        '&nbsp;',
        'Lembur',
        '1.5&times;',
        '2.0&times;',
        '2.5&times;',
        '3.0&times;',
        '4.0&times;',
        '&nbsp;',
        'Tidak Hadir'
    ];

    $element_pendapatan = [
        'Gaji Pokok',
        'Lembur',
        'UM Lembur',
        'Transport',
        'Shift 1 Puasa',
        'Kompensasi Karawang',
        'Total',
    ];
?>


<?php $__env->startSection('title', '' . $config['title']); ?>

<?php $__env->startSection('content'); ?>
    <table class="slip-header">

        <table class="slip-header">
        <tbody>
            <tr>
                <td colspan="4">PT SENTRAL MULTI INDOTAMA</td>
                <td width="1"style="text-align:left">DATE</td>
                <td width="1">: <?php echo e(date('d F Y')); ?></td>
            </tr>
            <tr>
                <td width="1">NAMA</td>
                <td width="1" colspan="3">: <?php echo e($header->EmpCode.'- '. $header->FullName); ?></td>
                <td width="1"style="text-align:left">TIME</td>
                <td>: <?php echo e(date('H:i:s')); ?></td>
            </tr>
            <tr>
                <td>DIVISI</td>
                <td>: <?php echo e($header->DivName); ?></td>
                <td width="1"style="text-align:left" colspan="3">THR </td>
                <td width="1">: <?php echo e(date('F Y', strtotime($header->TahunGaji.'-'.$header->BulanGaji.'-01'))); ?></td>
            </tr>
            <tr>
                <td>REKENING</td>    
                <td >:  <?php echo e($header->AccountNo); ?>  </td>
            </tr>
        </tbody>
    </table><!-- /.no-border -->
<hr>
    <table class="table-point">
       
    </table>
    <table class="no-border">
        <tbody>
            <tr>
                <td colspan="2" width="50"><strong>PENDAPATAN</strong></td>
                <td>&nbsp;</td>
                <td colspan="2" width="50"><strong>POTONGAN</strong></td>
            </tr>
            <tr>
                <td style="border: 1px solid;"><strong>Keterangan</strong></td>
                <td style="border: 1px solid;" class="text-right"><strong>Jumlah</strong></td>
                <td>&nbsp;</td>
                <td style="border: 1px solid;"><strong>Keterangan</strong></td>
                <td style="border: 1px solid;" class="text-right"><strong>Jumlah</strong></td>
            </tr>
            

            <?php $__currentLoopData = $pendapatan; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $ppp): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <?php if(!empty($ppp->GajiPokok)): ?>            
                <td style="border: 1px solid;">THR</td>
                <td style="border: 1px solid;  text-align:right;"><?php echo e(number_format($ppp->GajiPokok, 0,  "." , "." )); ?></td>
                <?php else: ?>
                    <td style="border: 1px solid;"></td>
                    <td style="border: 1px solid;"></td>
                <?php endif; ?>
                <td>&nbsp;</td>
                <?php if(!empty($ppp->Potongan)): ?>
                    <td style="border: 1px solid;">PPh21</td>
                    <td style="border: 1px solid; text-align:right;"><?php echo e(number_format($ppp->Potongan, 0,  "." , ".")); ?></td>
                <?php else: ?>
                    <td style="border: 1px solid;"></td>
                    <td style="border: 1px solid;"></td>
                <?php endif; ?>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            
        </tbody>
    </table>
    <p style="text-align: right">
        PENERIMA (.......................)
    </p>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('laporan', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\SMIMobileESS\resources\views/slipthr.blade.php ENDPATH**/ ?>