<h3 style="text-align: center;"><?php echo strtoupper($nama) ?></h3>
<h4 style="text-align: center;"><?= strtoupper($this->lang->line('periode')); ?> : <?php echo $tanggal_mulai . ' s/d ' . $tanggal_selesai ?></h4>
<h4></h4>
<h4 style="text-align: left;">* <?= $this->lang->line('masukan_kode_shift'); ?></h4>
<table width="100%" style="border-collapse:collapse;" border="1">
    <tr>
        <td rowspan="2">NO</td>
        <td rowspan="2"><?= strtoupper($this->lang->line('nik')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('nama_karyawan')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('cabang')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('departemen')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('menu_jabatan')); ?></td>
        <td rowspan="2">ID_KARYAWAN</td>
        <td rowspan="2">ID_CABANG</td>
        <td colspan="<?php echo $jumlah ?>"><?= strtoupper($this->lang->line('periode')); ?></td>
    </tr>
    <tr>
        <?php
            foreach ($header as $row) {
        ?>
                <td><?= $row['tanggal']; ?></td>
        <?php
            }
        ?>
    </tr>
    <?php
    $no = 1;
    foreach ($data as $row) {
    ?>
        <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><?= "#".$row->id_karyawan."#" ?></td>
            <td><?= "#".$row->id_cabang."#" ?></td>
            <?php foreach ($header as $row) { ?>
                <td></td>
            <?php } ?>
        </tr>
    <?php
        $no++;
    }
    ?>
</table>