<h4 class="text-center"><?= strtoupper($filename) ?></h4>
<br />
<table border="1">
    <thead>
        <tr>
            <th rowspan="2" class="text-center align-middle" width="20">NO</th>
            <th rowspan="2" class="text-center align-middle">NIK</th>
            <th rowspan="2" class="text-center align-middle">NAMA</th>
            <th rowspan="2" class="text-center align-middle">CABANG</th>
            <th rowspan="2" class="text-center align-middle">DEPARTEMEN</th>
            <th colspan="4" class="text-center align-middle">LEMBUR</th>
        </tr>
        <tr>
            <th class="text-center align-middle">HARI KERJA</th>
            <th class="text-center align-middle">LIBUR</th>
            <th class="text-center align-middle">LIBUR NASIONAL</th>
            <th class="text-center align-middle">LIBUR KHUSUS</th>
        </tr>
    </thead>
    <tbody>
        <?php
        $no = 1;
        foreach ($data as $value) {
        ?>
            <tr>
                <td><?= $no ?></td>
                <td><?= $value->nik ?></td>
                <td><?= $value->nama ?></td>
                <td><?= $value->cabang ?></td>
                <td><?= $value->departemen ?></td>
                <td><?= $master_lembur[$value->lembur_hari_kerja]['kode'] ?></td>
                <td><?= $master_lembur[$value->lembur_libur_off]['kode'] ?></td>
                <td><?= $master_lembur[$value->lembur_libur_nasional]['kode'] ?></td>
                <td><?= $master_lembur[$value->lembur_libur_khusus]['kode'] ?></td>
            </tr>
        <?php
            $no++;
        }
        ?>
    </tbody>
</table>
