
<h3 style="text-align: center;"><?php echo strtoupper($title) ?></h3>
<h4></h4>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
    <thead>
        <tr class="bg-tr">
            <th class="text-center">NO</th>
            <th class="text-center">NIK</th>
            <th class="text-center">NAMA</th>
            <th class="text-center">CABANG</th>
            <th class="text-center">DEPARTEMEN</th>
            <th class="text-center">JABATAN</th>
            <th class="text-center">TANGGAL MULAI KONTRAK</th>
            <th class="text-center">TANGGAL SELESAI KONTRAK</th>
            <th class="text-center">STATUS KONTRAK</th>
        </tr>
    </thead>
</thead>
	<?php
		$no = 0;
		foreach($data as $row) {
            $no++;
	?>
		<tr>
			<td><?= $no; ?></td>
            <td><?= $row->nik; ?></td>
            <td><?= $row->nama_lengkap; ?></td>
            <td><?= $row->kode_cabang.' - '.$row->nama_cabang ?></td>
            <td><?= $row->kode_departemen.' - '.$row->nama_departemen ?></td>
            <td><?= $row->kode_jabatan.' - '.$row->nama_jabatan ?></td>
            <td><?= $this->fungsi->format_date_strip($row->tgl_aktif_bekerja) ?></td>
            <td><?= $this->fungsi->format_date_strip($row->tgl_berhenti_bekerja) ?></td>
            <td>
                <?php
                    if($row->jml_hari < 0){
                        echo 'Kontrak Sudah Berakhir';
                    }else{
                        echo $row->jml_hari.' Hari lagi';
                    }
                ?>
            </td>
		</tr>
	<?php
			
		}
	?>
<tbody>
</tbody>
</table>