<div id="content" class="main-content">
    <div class="layout-px-spacing">

        <div class="seperator-header layout-top-spacing">
            <h4 class="">Data Kategori Arisan</h4>
        </div>

        <div class="row layout-spacing">
            <div class="col-lg-12">
                <div class="statbox widget box box-shadow">
                    <div class="widget-content widget-content-area">
                        <button type="button" class="btn btn-primary mb-2 mr-2 btn-rounded" data-toggle="modal" data-target="#tambahDataKategori">
                            <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit">
                                <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"></path>
                                <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"></path>
                            </svg> Tambah
                        </button>
                        <?= $this->session->flashdata('pesan_berhasil'); ?>
                        <table id="style-3" class="table style-3  table-hover">
                            <thead>
                                <tr>
                                    <th class="text-center"> No </th>
                                    <th class="text-center">Nama Kategori</th>
                                    <th class="text-center">Kelompok</th>
                                    <th class="text-center">Status</th>
                                    <th class="text-center">Aksi</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $no = 1; ?>
                                <?php foreach ($data_kategori as $Data_kategori) : ?>
                                    <tr>
                                        <td class="text-right"> <?= $no ?> </td>
                                        <td class="text-left">
                                            <?= $Data_kategori->nm_kategori ?>
                                        </td>
                                        <td class="text-right">
                                            12 Kelompok
                                        </td>
                                        <td class="text-center">
                                            <span class="shadow-none badge badge-primary"><?= $Data_kategori->status_kategori; ?>
                                            </span>
                                        </td>
                                        <td class="text-center">
                                            <ul class="table-controls">
                                                <li><a href="<?= base_url('assets/bimbingan/' . $Data_kategori->id) ?>" class="bs-tooltip" data-toggle="tooltip" data-placement="top" title="" data-original-title="Ubah Kategori">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-edit p-1 br-6 mb-1">
                                                            <path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7">
                                                            </path>
                                                            <path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z">
                                                            </path>
                                                        </svg>
                                                    </a></li>
                                                <li><a href="<?= base_url('arisan/data/kategori_kelompok/kelompok/' . $this->encrypt->encode($Data_kategori->id)) ?>" class="bs-tooltip" data-toggle="tooltip" data-placement="top" title="" data-original-title="Detail Kelompok">
                                                        <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye p-1 br-6 mb-1">
                                                            <path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path>
                                                            <circle cx="12" cy="12" r="3"></circle>
                                                        </svg>
                                                    </a>
                                                </li>
                                            </ul>
                                        </td>
                                    </tr>
                                    <?php $no++; ?>
                                <?php endforeach; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>

    </div>
</div>
<?php $this->load->view('arisan/keloladata/kategori/tambah'); ?>