<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<!DOCTYPE html>
<html>
  <head>
    <title>Admin &gt; Aplikasi Android</title>
    <?php include_once(VIEWPATH.'includes/head.php'); ?>
    <style type="text/css">
    .popover{width: 100%; display: block;left: 0;right: 0;}
    .popover-content>.list-group{margin: -9px -15px;border-radius:0;}
    .popover-content>.list-group>.list-group-item{border-left:0;border-right:0;}
    .popover-content>.list-group>.list-group-item:first-child{border-top:0;}
    .popover-content>.list-group>.list-group-item:last-child{border-bottom:0;}
    </style>
  </head>
  <body>
    <?php include_once(VIEWPATH. 'admin/_navbar.php'); ?>
    <div class="container">
      <ul class="breadcrumb">
        <li><a href="<?php echo site_url();?>"><i class="fa fa-home"></i></a></li>
        <li><a href="<?php echo site_url('admin');?>">Admin Panel</a></li>
        <li class="active"><span>Aplikasi Android</span></li>
      </ul>
      <div class="row">
        <div class="col-sm-4 col-md-3">
          <?php include(dirname(__file__).'/_sidebar.php');?>
        </div>
        <div class="col-sm-8 col-md-9">
          <div class="panel panel-default">
            <div class="panel-heading">
              <h3><i class="fa fa-cog"></i> Pengaturan</h3>
            </div>
            <div class="panel-body">
              <?php include(dirname(__file__).'/_tabs.php');?>
              <div class="tab-content">
                <div role="tabpanel" class="tab-pane active" id="content">
                  <ul class="nav nav-pills" style="margin-bottom: 15px;">
                  <li class="pull-right" role="presentation"><a data-toggle="modal" data-target="#myModal" href="<?php echo site_url('admin/modules/aplikasi-android/tambah-menu-akun');?>"><i class="fa fa-plus"></i> Tambah Menu</a></li>
                  </ul>
                  <div class="list-group" style="margin-bottom: 0;">
                    <div class="list-group-item"><i class="fa fa-exchange"></i> Transaksi</div>
                    <div class="list-group-item"><i class="fa fa-money"></i> Saldo</div>
                    <div class="list-group-item"><i class="fa fa-bell"></i> Pemberitahuan</div>
                    <div class="list-group-item"><i class="fa fa-heart"></i> Produk Favorit</div>
                    <div class="list-group-item"><i class="fa fa-map-o"></i> Alamat Pengiriman</div>
                    <?php for ($i = 0; $i < count($app['account_menu']); $i++):?>
                    <a href="javascript:;" class="list-group-item" data-container="body" data-toggle="popover" data-placement="top" data-html="true" data-content="<?php echo html_escape('<div class="list-group"><a data-toggle="modal" data-target="#myModal" class="list-group-item" href="'.site_url('admin/modules/aplikasi-android/edit-menu-akun/'.$i).'"><i class="fa fa-pencil"></i> Edit</a><a data-toggle="modal" data-target="#myModal" class="list-group-item" href="'.site_url('admin/modules/aplikasi-android/hapus-menu-akun/'.$i).'"><span class="text-danger"><i class="fa fa-remove"></i> Hapus</span></a></div>');?>" data-trigger="focus"><i class="fa fa-chevron-right"></i> <?php echo html_escape($app['account_menu'][$i]['label']);?></a>
                    <?php endfor;?>
                    <div class="list-group-item"><i class="fa fa-cog"></i> Pengaturan</div>
                    <div class="list-group-item"><i class="fa fa-sign-out"></i> Keluar</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <?php include_once(VIEWPATH.'includes/foot.php'); ?>
  </body>
</html>