<h3 style="text-align: center;"><?= strtoupper($this->lang->line('data_karyawan')) ?></h3>
<h4 style="text-align: center;"><?= $title ?></h4>
<h4> </h4>
<table id="list_data" class="table table-striped" style="width:100%">
    <thead>
        <tr>
            <th>NO</th>
            <th><?= strtoupper($this->lang->line('nik')) ?></th>
            <th><?= strtoupper($this->lang->line('nama_lengkap')) ?></th>
            <th><?= strtoupper($this->lang->line('cabang')) ?></th>
            <th><?= strtoupper($this->lang->line('departemen')) ?></th>
            <th><?= strtoupper($this->lang->line('jabatan')) ?></th>
            <th><?= strtoupper($this->lang->line('jenis_kelamin')) ?></th>
            <th><?= strtoupper($this->lang->line('lock_face_recognition')) ?></th>
        </tr>
    </thead>
    <tbody>
        <?php
        $no = 0;
        foreach ($data as $row) {
            $no++;

            $kelamin = $this->fungsi->jkel($row->jenis_kelamin);

            if ($row->lock_facerecognition === "0") {
                $facerecognition = $this->lang->line('tidak');
            }else{
                $facerecognition = $this->lang->line('ya');
            }
        ?>
            <tr>
                <td><?= $no ?></td>
                <td>#<?= $row->nik ?>#</td>
                <td><?= ucwords(strtolower($row->nama_lengkap)) ?></td>
                <td><?= ucwords(strtolower($row->nama_cabang)) ?></td>
                <td><?= ucwords(strtolower($row->nama_departemen)) ?></td>
                <td><?= ucwords(strtolower($row->nama_jabatan)) ?></td>
                <td><?= $kelamin ?></td>
                <td><?= $facerecognition ?></td>
            </tr>
        <?php
        }
        ?>
    </tbody>
</table>
