<table>
    <thead>
        <tr>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Tanggal</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Nama GL</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Departemen</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Plant</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Nama Manpower</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Jabatan</th>

            <th
                style="background-color: #2E75B6; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                SHE Status</th>
            <th
                style="background-color: #2E75B6; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                SHE Ket</th>

            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                ATR Status</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                ATR Ket</th>

            <th
                style="background-color: #2E75B6; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Incident Status</th>
            <th
                style="background-color: #2E75B6; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Incident Ket</th>

            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Behavior Status</th>
            <th
                style="background-color: #1F4E78; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Behavior Ket</th>

            <th
                style="background-color: #833C0C; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Note</th>
            <th
                style="background-color: #833C0C; color: #FFFFFF; font-weight: bold; border: 1px solid #000000; text-align: center;">
                Feedback</th>
        </tr>
    </thead>
    <tbody>
        <?php $__currentLoopData = $laporans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <?php $details = $item->details->keyBy('kategori'); ?>
            <tr>
                <td style="border: 1px solid #000000; text-align: center;">
                    <?php echo e(\Carbon\Carbon::parse($item->tanggal)->format('d-m-Y')); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->gl->nama ?? '-'); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->departemen); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->plant); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->manpower->nama ?? '-'); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->jabatan); ?></td>

                <td
                    style="border: 1px solid #000000; text-align: center; color: <?php echo e(optional($details['SHE Culture'])->status ? '#008000' : '#FF0000'); ?>;">
                    <?php echo e(optional($details['SHE Culture'])->status ? 'Tercapai' : 'Tidak'); ?>

                </td>
                <td style="border: 1px solid #000000;"><?php echo e(optional($details['SHE Culture'])->keterangan ?? '-'); ?></td>

                <td
                    style="border: 1px solid #000000; text-align: center; color: <?php echo e(optional($details['ATR'])->status ? '#008000' : '#FF0000'); ?>;">
                    <?php echo e(optional($details['ATR'])->status ? 'Tercapai' : 'Tidak'); ?>

                </td>
                <td style="border: 1px solid #000000;"><?php echo e(optional($details['ATR'])->keterangan ?? '-'); ?></td>

                <td
                    style="border: 1px solid #000000; text-align: center; color: <?php echo e(optional($details['Incident'])->status ? '#008000' : '#FF0000'); ?>;">
                    <?php echo e(optional($details['Incident'])->status ? 'Tercapai' : 'Tidak'); ?>

                </td>
                <td style="border: 1px solid #000000;"><?php echo e(optional($details['Incident'])->keterangan ?? '-'); ?></td>

                <td
                    style="border: 1px solid #000000; text-align: center; color: <?php echo e(optional($details['Manpower Behavior'])->status ? '#008000' : '#FF0000'); ?>;">
                    <?php echo e(optional($details['Manpower Behavior'])->status ? 'Tercapai' : 'Tidak'); ?>

                </td>
                <td style="border: 1px solid #000000;"><?php echo e(optional($details['Manpower Behavior'])->keterangan ?? '-'); ?>

                </td>

                <td style="border: 1px solid #000000;"><?php echo e($item->note ?? '-'); ?></td>
                <td style="border: 1px solid #000000;"><?php echo e($item->feedback ?? '-'); ?></td>
            </tr>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </tbody>
</table>
<?php /**PATH C:\laragon\www\gl-asuh\resources\views/exports/laporan.blade.php ENDPATH**/ ?>