<div class="row">
  <div class="col-sm-4">
    <div class="box box-primary">
      <div class="box-header with-border">
        <h3 class="box-title">Menu Type</h3>
      </div><!-- /.box-header -->
      <div class="box-body">
        <div class="list-group">
          <?php foreach ($menu_type as $value): 
            $id=$value->id_menu_type; ?>
            <?php
              $url = urldecode(str_replace(' ', '-', strtolower($value->type)));
              $active = '';
              if ($url == $this->uri->segment(3))
                $active = ' active ';
            ?>
<!--             <?php if ($value->id_menu_type != 1): ?>
              <a href="<?php echo site_url('cms/menu_type/'.$url.'/delete/'.$value->id_menu_type) ?>" title="Delete menu type" class="btn btn-xs btn-danger btn-flat" style="margin-bottom: 10px;"><i class="fa fa-trash"></i> Delete</a>
            <?php endif ?> -->
            <a href="<?php echo site_url('cms/menu/'.$url) ?>" class="list-group-item <?php echo $active ?>"><?php echo $value->type ?></a>
            <br>
          <?php endforeach ?>
        </div>
        <div class="form-group">
          <a href="<?php echo site_url('menu_type') ?>" class="<?= $this->config->item('botton')?> btn-block"><i class="fa fa-plus-circle"></i> &nbsp;Manage Menu Type</a>
        </div>
        <div class="callout callout-info"> 
          <li>pengaturan menu dapat dilakukan dengan cara drag and drop</li>
          <li>setiap menu dapat di atur hak aksesnya</li> 
        </div>         
      </div>
    </div>
  </div>
  <div class="col-sm-8">
    <div class="box box-primary">
      <div class="box-header with-border">
        <h3 class="box-title">Menu</h3>
        <div class="box-tools pull-right">
          <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
        </div><!-- /.box-tools -->
      </div><!-- /.box-header -->
      <div class="box-body">
        <?php echo form_open('cms/update_menu') ?>
          <div class="form-group">
            <a href="<?php echo site_url('menu/create') ?>" class="<?= $this->config->item('botton')?>"><i class="fa fa-plus-circle"></i> &nbsp;Tambah Menu</a>
            <button type="submit" id="saveMenu" class="btn btn-success btn-flat"><i class="fa fa-save"></i> &nbsp;Simpan</button>
          </div>
          <div id="sideMenu" class="dd">
            <?php echo $admin_menu ?>
          </div>
          <input type="hidden" name="type" value="<?php echo $this->uri->segment(3) ?>">
          <textarea name="json_menu" hidden id="tampilJsonSideMenu"></textarea>
        <?php echo form_close() ?>
      </div><!-- /.box-body -->
    </div>
  </div>
</div>