<style type="text/css">a[href="<?php echo site_url('admin/access-disabled');?>"]{color: #a94442 !important;cursor: not-allowed;}</style>
<script type="text/javascript">$(document).ready(function() {$('a[href="<?php echo site_url('admin/access-disabled');?>"]').click(function(){alert("Kamu tidak memiliki ijin untuk mengakses link ini!");return false;});});</script>
<!-- navbar -->
    <nav class="navbar navbar-inverse navbar-fixed-top hidden-print" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="<?php echo site_url('admin'); ?>"><i class="fa fa-shield"></i> Admin Panel</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav">
            <li class="<?php echo $this->router->fetch_method() == 'products' ? 'active' : '';?>"><a href="<?php echo site_url('admin/produk');?>">Produk</a></li>
            <li class="<?php echo $this->router->fetch_method() == 'transaksi' ? 'active' : '';?>"><a href="<?php echo site_url('admin/transaksi');?>">Transaksi</a></li>
            <li class="<?php echo $this->router->fetch_method() == 'users' ? 'active' : '';?>"><a href="<?php echo site_url('admin/users');?>">Member</a></li>
            <li class="<?php echo $this->router->fetch_method() == 'sms' ? 'active' : '';?>"><a href="<?php echo site_url('admin/sms');?>">SMS</a></li>
            <li class="dropdown <?php echo $this->router->fetch_method() == 'settings' ? 'active' : '';?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Pengaturan <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo site_url('admin/pengaturan');?>">Umum</a></li>
                <li><a href="<?php echo site_url('admin/pengaturan/server');?>">Server Pulsa</a></li>
                <li><a href="<?php echo site_url('admin/pengaturan/transaksi');?>">Transaksi</a></li>
                <li><a href="<?php echo site_url('admin/pengaturan/deposit');?>">Deposit</a></li>
                <li><a href="<?php echo site_url('admin/pengaturan/reseller');?>">Reseller</a></li>
                <li><a href="<?php echo site_url('admin/pengaturan/perijinan-lainnya');?>">Perijinan &amp; Lainnya</a></li>
              </ul>
            </li>
            <li class="dropdown <?php echo in_array($this->router->fetch_method(), array('deposit_history','testimonial','feedback','faq')) ? 'active' : '';?>">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Lainnya <span class="caret"></span></a>
              <ul class="dropdown-menu">
                <li class="<?php echo $this->router->fetch_method() == 'deposit_history' ? 'active' : '';?>">
                  <a href="<?php echo site_url('admin/riwayat-deposit');?>">Riwayat Deposit</a>
                </li>
                <li class="<?php echo $this->router->fetch_method() == 'testimonial' ? 'active' : '';?>">
                  <a href="<?php echo site_url('admin/testimonial');?>">Testimonial</a>
                </li>
                <li class="<?php echo $this->router->fetch_method() == 'feedback' ? 'active' : '';?>">
                  <a href="<?php echo site_url('admin/feedback');?>">Umpan Balik</a>
                </li>
                <li class="<?php echo $this->router->fetch_method() == 'faq' ? 'active' : '';?>">
                  <a href="<?php echo site_url('admin/faq');?>">FAQ</a>
                </li>
                <li class="<?php echo $this->router->fetch_method() == 'about_system' ? 'active' : '';?>">
                  <a href="<?php echo site_url('admin/sistem');?>">Tentang Sistem</a>
                </li>
              </ul>
            </li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-user"></i>
              <?php echo html_escape($this->user->data['us_name']) . ($this->user->count_notifications() ? ' <span class="label label-danger" style="border-radius: 15px">'.($this->user->count_notifications() > 100 ? '99+' : $this->user->count_notifications()).'</span>' : '');?>
              <b class="caret"></b>
              </a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo site_url('akun/profil');?>"><i class="fa fa-user"></i> Profil</a></li>
                <li><a href="<?php echo site_url('akun/notifikasi');?>"><?php echo ($this->user->count_notifications() ? '<span class="label label-danger pull-right" style="border-radius: 15px">'.$this->user->count_notifications().'</span>' : '');?><i class="fa fa-bell"></i> Pemberitahuan</a></li>
                <li class="active"><a href="<?php echo site_url('admin');?>"><i class="fa fa-shield"></i> Admin Panel</a></li>
                <li class="divider"></li>
                <li><a href="<?php echo site_url();?>"><i class="fa fa-chevron-left"></i> Kembali ke situs</a></li>
              </ul>
            </li>
          </ul>
        </div>
      </div>
    </nav>
    
