<h4><?= strtoupper($filename) ?></h4>
<h4>Periode <?= $periode ?></h4>
<h4></h4>
<table border="1">
	<thead>
        <tr class="bg-tr">
            <th class="align-middle text-center">NO</th>
            <th class="align-middle text-center">NAMA KARYAWAN</th>
            <th class="align-middle text-center">NAMA DIREKENING</th>
            <th class="align-middle text-center">NAMA BANK</th>
            <th class="align-middle text-center">NO. REKENING</th>
            <th class="align-middle text-center">THP</th>
        </tr>
	</thead>
	<tbody>
        <?php
			$no = 1;
			foreach ($data as $val) {
            ?>
				<tr>
					<td><?= $no ?></td>
					<td><?= $val->nm_karyawan ?></td>
					<td><?= $val->bank_atas_nama ?></td>
					<td><?= $val->bank_nama ?></td>
					<td><?= $val->bank_rek ?></td>
					<td><?= (substr($val->thp, 0, 1) == '-' || empty($val->thp)) ? 0 : $val->thp ?></td>
				</tr>
			<?php
			$no ++;
            }
		?>
	</tbody>
</table>
