<div class="row layout-spacing">
    <div class="col-lg-12">
        <div class="statbox widget box box-shadow">
            <div class="widget-content widget-content-area">
                <table id="style-3" class="table style-3  table-hover">
                    <thead>
                        <tr>
                            <th class="text-center">No</th>
                            <th class="text-center">Komponen</th>
                            <th class="text-center">Keterangan</th>
                            <th class="text-center">Persentase</th>
                            <th class="text-center">Aksi</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $no = 1; ?>
                        <?php foreach ($komp_faktor as $Komp_faktor) : ?>
                        <tr>
                            <td class="text-left">
                                <?= $no ?>
                            </td>
                            <td class="text-left">
                                <?= $Komp_faktor->nm_komp ?> - <?= $Komp_faktor->nm_faktor ?>
                            </td>
                            <td class="text-left">
                                <?= $Komp_faktor->ket_komp ?> <br> dimana <?= $Komp_faktor->ket_komp ?>
                            </td>
                            <td class="text-right">
                                <?= $Komp_faktor->pers_faktor ?> %
                            </td>
                            <td class="text-center">
                                <a class="btn btn-primary btn-sm"
                                    href="<?= base_url('kabag_marketing/data/kpi_tgt/' . $this->encrypt->encode($Komp_faktor->faktor_id)) ?>">Detail</a>
                            </td>
                        </tr>
                        <?php $no++; ?>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>