

 <?php $this->load->view('v_header'); ?> 
<?php $this->load->view('v_head'); ?> 



  <script type="text/javascript">
  $(document).ready(function(){
    $(".inputs").click(function(){
      var divid = $(this).attr("id");
       $.ajax({
           type: "POST",
           url: "<?php echo base_url();?>c_modules/main", 
           data: {modulecode: divid},
           dataType: "text",  
           success: function(data){
                  if(data == '0')
                  {
                    window.location.href = 'c_modules';
                  }
                  else{
                     $("#content").html(data);
                  }
                }
            });
       // $("#content").html("asdf");
      });


    $("#SignOut").click(function(){
       $.ajax({
           type: "POST",
           url: "<?php echo base_url();?>c_modules/SignOut", 
           dataType: "text",  
           success: function(data){
                }
            });
      });



    $('#dtHorizontalExample').DataTable({
      "scrollX": true
    });
    $('.dataTables_length').addClass('bs-select');
    });
  </script>
<body class="hold-transition sidebar-mini layout-fixed">


  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
 
    </ul>
  </nav>

  <!-- Main Sidebar Container -->
  <aside class="main-sidebar sidebar-dark-primary elevation-4" >
    <!-- Brand Logo -->
    <a href="index.php" class="brand-link">
      <img src="<?php echo base_url();?>assets/dist//img/AdminLTELogo.png"
           alt="AdminLTE Logo"
           class="brand-image img-circle elevation-3"
           style="opacity: .8">
      <span class="brand-text font-weight-light">White Dread Apps</span>
    </a>

    <!-- Sidebar -->
    <div class="sidebar">

      <div class="user-panel mt-3 pb-3 mb-3 d-flex">
        <div class="image">
          <img src="<?php echo base_url();?>assets/dist/img/user2-160x160.jpg" class="img-circle elevation-2" alt="User Image">
        </div>
          <div class="info">
            <a href="#" class="d-block">
              <?php echo $this->session->userdata('username') ;?>
            </a>
        </div>
      </div>
      
      <nav class="mt-2">
        <ul class="nav nav-pills nav-sidebar flex-column" data-widget="treeview" role="menu" data-accordion="false">
        
        <?php if ($this->session->userdata('privilege') == 'SuperAdmin' || $this->session->userdata('privilege') == 'Reporter' || $this->session->userdata('privilege') == 'Admin') {?>
            <li class="nav-item has-treeview">
              <div id = "reports" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                    Reports
                  </p>
                </a>
              </div>
            </li>
        <?php }?>
        
        <?php if ($this->session->userdata('privilege') == 'SuperAdmin' || $this->session->userdata('privilege') == 'Admin') {?>
            <li class="nav-item has-treeview">
              <div id = "dtn" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                    Delete Ticket Number Withdrawals
                  </p>
                </a>
              </div>
            </li>
            
            <li class="nav-item has-treeview">
              <div id = "dtnd" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                    Delete Ticket Number Deposits Permata
                  </p>
                </a>
              </div>
            </li>
            
            
            <li class="nav-item has-treeview">
              <div id = "idr" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                    Insert / Delete Rekening
                  </p>
                </a>
              </div>
            </li>
            
            <li class="nav-item has-treeview">
              <div id = "usr" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                   Update Status Rekening
                  </p>
                </a>
              </div>
            </li>
            
            <li class="nav-item has-treeview">
              <div id = "eaf" class="inputs" >
                <a href="#" class="nav-link">
                  <i class="nav-icon fas fa-edit"></i>
                  <p>
                   Edit Admin Fee
                  </p>
                </a>
              </div>
            </li>
            <?php }?>
            
            <!--<li class="nav-item has-treeview">-->
            <!--  <div id = "UP" class="inputs" >-->
            <!--    <a href="#" class="nav-link">-->
            <!--      <i class="nav-icon fas fa-edit"></i>-->
            <!--      <p>-->
            <!--        Upload Withdrawals-->
            <!--      </p>-->
            <!--    </a>-->
            <!--  </div>-->
            <!--</li>-->
            
            <!--<li class="nav-item has-treeview">-->
            <!--  <div id = "ML" class="inputs" >-->
            <!--    <a href="#" class="nav-link">-->
            <!--      <i class="nav-icon fas fa-edit"></i>-->
            <!--      <p>-->
            <!--        MBCA Logins-->
            <!--      </p>-->
            <!--    </a>-->
            <!--  </div>-->
            <!--</li>-->
            
            <!--<li class="nav-item has-treeview">-->
            <!--  <div id = "LK" class="inputs" >-->
            <!--    <a href="#" class="nav-link">-->
            <!--      <i class="nav-icon fas fa-edit"></i>-->
            <!--      <p>-->
            <!--        Lembar Kerja-->
            <!--      </p>-->
            <!--    </a>-->
            <!--  </div>-->
            <!--</li>-->
          
            <li class="nav-item">
              <form action="<?php echo base_url();?>c_modules/signout" method="post">
              <div class="info" id = "SignOut">
                <button type="submit" class="btn btn-primary btn-block">Sign Out</button>
              </div>
              </form>
            </li>
        </ul>
      </nav>
      <!-- /.sidebar-menu -->
    </div>
    <!-- /.sidebar -->
  </aside>

<style>
#content {

zoom: 70%;
}
</style>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
  <div class="card-body">
    <section class="content"> 
      <div class="card card-default">
        <div class="card-body">
          <div id = "content" name = "content">

                <div class="card">
          <div class="card-header border-transparent">
            <h3 class="card-title">Calls Summary</h3>
              <div class="card-tools">
                <button type="button" class="btn btn-tool" data-card-widget="collapse">
                  <i class="fas fa-minus"></i>
                </button>
              </div>
          </div>
          <!-- /.card-header -->
          <div class="card-body p-0">
            <div class="row">

              <div class="col-lg-4 col-6">
                <div class="small-box 
                  bg-white" >
                  <div class="inner">
                    <h3>
                      All Calls
                    </h3>
                    <p><h4>
                      <?php echo $alldata[0]->jumlah;?>
                    </h4></p>
                  </div>
                  <div class="icon">
                    <i class="ion ion-stats-bars"></i>
                  </div>
                </div>
              </div>
              
              
              <div class="col-lg-4 col-6">
                <div class="small-box 
                  bg-red" >
                  <div class="inner">
                    <h3>
                      Red VIP
                    </h3>
                    <p><h4>
                      <?php echo $red[0]->jumlah;?>
                    </h4></p>
                  </div>
                  <div class="icon">
                    <i class="ion ion-stats-bars"></i>
                  </div>
                </div>
              </div>
              
              <div class="col-lg-4 col-6">
                <div class="small-box 
                  bg-orange" >
                  <div class="inner">
                    <h3>
                      Orange VIP
                    </h3>
                    <p><h4>
                      <?php echo $orange[0]->jumlah;?>
                    </h4></p>
                  </div>
                  <div class="icon">
                    <i class="ion ion-stats-bars"></i>
                  </div>
                </div>
              </div>
              
              <div class="col-lg-4 col-6">
                <div class="small-box 
                  bg-green" >
                  <div class="inner">
                    <h3>
                      Green VIP
                    </h3>
                    <p><h4>
                      <?php echo $green[0]->jumlah;?>
                    </h4></p>
                  </div>
                  <div class="icon">
                    <i class="ion ion-stats-bars"></i>
                  </div>
                </div>
              </div>

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

          </div>
        </div>
      </div>
    </section>
  </div>
</div>
</body>
 <?php $this->load->view("v_foot");?>