<div id="content" class='content'>
    <div class='row'>
        <div class="col-xs-12">
            <div class="pull-right">
                <!-- <?= anchor('menu/create/', '<i class="fa fa-plus"></i> Tambah Data', array('class' => 'btn btn-success btn-sm')); ?> -->
            </div>
        </div>
    </div>
    <br>
    <div class="row">
        <div class='col-lg-12'>
            <div class='panel <?= $web_box_color ?>'>
                <div class='panel-heading'>
                    <h3 class='panel-title bold'>Data Master</h3>
                </div>
                <div class='panel-body'>
                    <table class="table table-striped" id="mytable" style="width: 100%;">
                        <thead>
                            <tr>
                                <th class="text-center valign-middle" width="10px">No</th>
                                <th class="text-center valign-middle">Nama Menu</th>
                                <th class="text-center valign-middle"><span><i class="fa fa-cogs"></i></span></th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php
                            $start = 0;
                            foreach ($menu_data as $menu) {
                                $active = $menu->is_active == 1 ? 'AKTIF' : 'TIDAK AKTIF';
                                $parent = $menu->is_parent > 1 ? 'MAINMENU' : 'SUBMENU'
                            ?>
                                <tr>
                                    <td><?= ++$start ?></td>
                                    <td><?= $menu->name ?></td>
                                    <td style="text-align:center" width="140px">
                                        <?php
                                        echo anchor(site_url($menu->link), '<i class="fa fa-search"></i>', array('title' => 'detail', 'class' => 'btn btn-success btn-icon btn-circle', 'target' => 'blank'));
                                        ?>
                                    </td>
                                </tr>
                            <?php
                            }
                            ?>
                        </tbody>
                    </table>

                </div>
            </div>
        </div>
    </div>
</div>