<!-- **********************************************************************************************************************************************************
    MAIN CONTENT
    *********************************************************************************************************************************************************** -->
<!--main content start-->
<section id="main-content">
    <section class="wrapper">
        <div class="row mt">
            <div class="col-lg-12">
                <div class="content-panel">
                    <h4 class="pull-left"><i class="fa fa-angle-right"></i> Data Reseller</h4>
                    <div class="pull-right" style="padding-right: 10px;">
                        <a href="<?= base_url() ?>admin/reseller/form?id=">
                            <button type="button" class="btn btn-primary btn-xs">Insert Data</button>
                        </a>
                        
                    </div>
                    <section id="unseen">
                        <table id="example" class="table table-bordered table-striped">
                            <thead>
                                <tr>
                                    <th>Konten</th>
                                    <th>Address</th>
                                    <th style="width: 10%">&nbsp;</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php
                                foreach ($mydata->result() as $reseller) {
                                    ?>
                                    <tr>
                                        <td><?= $reseller->nama ?></td>
                                        <td class="numeric"><?= $reseller->alamat ?></td>
                                        <td>
                                            <div class="btn-group">
                                                <button type="button" class="btn btn-theme dropdown-toggle" data-toggle="dropdown">
                                                    Action <span class="caret"></span>
                                                </button>
                                                <ul class="dropdown-reseller" role="reseller">
                                                    <li><a href="<?= base_url() ?>admin/reseller/form?id=<?= $reseller->id ?>">Edit Data</a></li>
                                                    
                                                    <li><a href="<?= base_url() ?>admin/reseller/hapus?id=<?= $reseller->id ?>"  onclick="return confirm('Yakin Menghapus?')">Delete</a></li>
                                                </ul>
                                            </div>
                                        </td>
                                    </tr>
                                    <?php
                                }
                                ?>
                            </tbody>
                        </table>
                    </section>
                    <div style="clear: both"></div>
                </div>
            </div>
        </div><!--row -->
    </section>
</section>
