<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">Aksi</th>
                            <th class="text-center">id</th>
                            <th class="text-center">role_id</th>
                            <th class="text-center">email</th>
                            <th class="text-center">username</th>
                            <th class="text-center">no_hp</th>
                            <th class="text-center">nm_panggilan</th>
                            <th class="text-center">status_akun</th>
                            <th class="text-center">gambar_profil</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($data_table as $Data_table) : ?>
                        <tr>
                            <td class="text-center">
                                <a href="javascript:void(0);" class="btn btn-primary btn-sm" id="detail_konten"
                                    data-target="#konten_detail" class="bs-tooltip" data-toggle="modal"
                                    data-login_id="<?= $Data_table->id ?>" data-role_id="<?= $Data_table->role_id ?>"
                                    data-email="<?= $Data_table->email ?>" data-username="<?= $Data_table->username ?>"
                                    data-no_hp="<?= $Data_table->no_hp ?>"
                                    data-nm_panggilan="<?= $Data_table->nm_panggilan ?>"
                                    data-status_akun="<?= $Data_table->status_akun ?>"
                                    data-gambar_profil="<?= $Data_table->gambar_profil ?>">Detail</a>
                            </td>
                            <td class="text-center">
                                <?= $Data_table->id; ?>
                            </td>
                            <td class="text-left">
                                <?php foreach ($role_level as $Role_level) :
                                        if ($Data_table->role_id == $Role_level->id) :
                                            echo $Role_level->role_level;
                                        endif;
                                    endforeach; ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_table->email; ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_table->username; ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_table->no_hp; ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_table->nm_panggilan; ?>
                            </td>
                            <td class="text-center">
                                <?= $Data_table->status_akun; ?>
                            </td>
                            <td class="text-left">
                                <?= $Data_table->gambar_profil; ?>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>