<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 text-uppercase"><?= $this->lang->line('nik') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('nama') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('cabang') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('departemen') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('jabatan') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('tgl_mulai_kontrak') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('tgl_berakhir_kontrak') ?></th>
            <th class="text-center text-uppercase"><?= $this->lang->line('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 $this->lang->line('kontrak_sudah_berakhir');
                } else {
                    echo $row->jml_hari . ' ' . $this->lang->line('hari_lagi');
                }
                ?>
            </td>
        </tr>
    <?php

    }
    ?>
    <tbody>
    </tbody>
</table>
