<h3 style="text-align: center;"><?= strtoupper(strtolower($title)) ?></h3>
<h4 style="text-align: center;">PERIODE : <?php echo $tanggal_mulai . ' s/d ' . $tanggal_selesai ?></h4>
<h4> </h4>
<table width="100%" style="border-collapse:collapse;" border="1">
    <tr>
        <td rowspan="2">NO</td>
        <td rowspan="2"><?= strtoupper($this->lang->line('tgl')); ?></td>
        <td colspan="3"><?= strtoupper($this->lang->line('jadwal')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('petugas')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('patroli')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('keterangan')); ?></td>
        <td rowspan="2"><?= strtoupper($this->lang->line('lokasi')); ?></td>
    </tr>
    <tr>
        <td style="text-align:center;"><?= strtoupper($this->lang->line('nama_patroli')); ?></td>
        <td style="text-align:center;"><?= strtoupper($this->lang->line('mulai')); ?></td>
        <td style="text-align:center;"><?= strtoupper($this->lang->line('selesai')); ?></td>
    </tr>
    <?php
    $no = 1;
    foreach ($data as $row) {
    ?>
        <tr>
            <td><?= $no; ?></td>
            <td><?= date_format(date_create($row->tgl_cp),"d-m-Y"); ?></td>
            <td><?= $row->patroli; ?></td>
            <td><?= date_format(date_create($row->min_absen),"H:i"); ?></td>
            <td><?= date_format(date_create($row->max_absen),"H:i"); ?></td>
            <td><?= $row->nama_lengkap; ?></td>
            <td><?= date_format(date_create($row->tgl_cp),"H:i"); ?></td>
            <td><?= $row->ket_pat; ?></td>
            <td><?= $row->nm_qr; ?></td>
        </tr>
    <?php
        $no++;
    }
    ?>
</table>