<h4 class="text-center"><?= strtoupper($filename) ?></h4>
<h4 class="text-center">Periode <?= $periode ?></h4>
<br />
<table border="1">
    <thead>
        <tr class="bg-tr">
            <th class="align-middle">No</th>
            <th class="align-middle">Tgl Pemotongan</th>
            <th class="align-middle">Penerima Penghasilan?</th>
            <th class="align-middle">NPWP</th>
            <th class="align-middle">Nomor KTP</th>
            <th class="align-middle">Nama Penerima Penghasilan<br>Sesuai KTP</th>
            <th class="align-middle">Alamat Penerima Penghasilan<br>Sesuai KTP</th>
            <th class="align-middle">Kode Objek Pajak</th>
            <th class="align-middle">Penandatangan Menggunakan?</th>
            <th class="align-middle">NPWP Penandatangan</th>
            <th class="align-middle">Nomor KTP Penandatangan</th>
            <th class="align-middle">Kode PTKP</th>
            <th class="align-middle">Pegawai Harian?</th>
            <th class="align-middle">Menggunakan Gross Up?</th>
            <th class="align-middle">Penghasilan Bruto</th>
            <th class="align-middle">Mendapatkan Fasilitas?</th>
            <th class="align-middle">Nomor SKB/Nomor DTP</th>
            <th class="align-middle">PPH21</th>
        </tr>
    </thead>
    <tbody>
        <?php
        $no = 1;
        foreach ($data as $item) {
        ?>
            <tr>
                <td><?= $no ?></td>
                <td><?= date('d-m-Y', strtotime($item->tgl_pemotongan)) ?></td>
                <td><?= $item->penerima_penghasilan ?></td>
                <td><?= $item->npwp ?></td>
                <td><?= $item->no_ktp ?></td>
                <td><?= $item->nm_karyawan ?></td>
                <td><?= $item->alamat_ktp ?></td>
                <td><?= $item->kd_objek_pajak ?></td>
                <td><?= $item->penandatangan_jenis ?></td>
                <td><?= $item->penandatangan_npwp ?></td>
                <td><?= $item->penandatangan_ktp ?></td>
                <td><?= $item->kd_ptkp ?></td>
                <td><?= $item->pegawai_harian ?></td>
                <td><?= $item->gross_up ?></td>
                <td><?= $item->gaji_bruto ?></td>
                <td><?= $item->fasilitas ?></td>
                <td><?= $item->no_skb_dtp ?></td>
                <td><?= $item->pph21 ?></td>
            </tr>
        <?php
            $no++;
        }
        ?>
    </tbody>
</table>
