<div class="tab-pane fade" id="tabs_kpi" role="tabpanel" aria-labelledby="kpi_tabs">
    <table id="style-10" class="table style-10  table-hover">
        <h4>Penilaian KPI Marketing</h4>
        <thead>
            <tr>
                <th class="text-center">No</th>
                <th class="text-center">Bulan KPI</th>
                <th class="text-center">Nilai Angka</th>
                <th class="text-center">Nilai Huruf</th>
                <th class="text-center">Status</th>
            </tr>
        </thead>
        <tbody>
            <?php $no = 1; ?>
            <?php foreach ($kpi as $Kpi) : ?>
            <tr>
                <td>
                    <center><?= $no ?></center>
                </td>
                <td class="text-right">
                    <?= $this->mycustom->bulanIndo(date('m', strtotime($Kpi->bln_kpi)))  ?>
                    <?= date('Y', strtotime($Kpi->bln_kpi))  ?>
                </td>
                <td class="text-center">
                    <?= $Kpi->nilai_angka ?>
                </td>
                <td class="text-center">
                    <?= $Kpi->nilai_huruf ?>
                </td>
                <td class="text-center">
                    <?php
                        if ($Kpi->sts_hasil == 'PROSES') : ?>
                    <span class="shadow-none badge badge-danger">PROSES</span>
                    <?php else : ?>
                    <span class="shadow-none badge badge-success">SELESAI</span>
                    <?php endif; ?>
                </td>
            </tr>
            <?php $no++; ?>
            <?php endforeach; ?>
        </tbody>
    </table>
</div>
<?php $this->load->view('manager/identitas/karyawan/m_detail'); ?>