<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>Manajemen - Sistem Informasi Keuangan</title>

  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

  <link rel="stylesheet" href="../assets/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="../assets/bower_components/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="../assets/bower_components/Ionicons/css/ionicons.min.css">
  <link rel="stylesheet" href="../assets/dist/css/AdminLTE.min.css">
  <link rel="stylesheet" href="../assets/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
  <link rel="stylesheet" href="../assets/dist/css/skins/_all-skins.min.css">
  <link rel="stylesheet" href="../assets/bower_components/morris.js/morris.css">
  <link rel="stylesheet" href="../assets/bower_components/jvectormap/jquery-jvectormap.css">
  <link rel="stylesheet" href="../assets/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <link rel="stylesheet" href="../assets/bower_components/bootstrap-daterangepicker/daterangepicker.css">
  <link rel="stylesheet" href="../assets/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

<?php
include '../koneksi.php';
session_start();

if ($_SESSION['status'] != "manajemen_logedin") {
  header("location:../index.php?alert=belum_login");
  exit;
}
?>
</head>

<body class="hold-transition skin-blue sidebar-mini">

<style>
  #table-datatable {
    width: 100% !important;
  }
  #table-datatable .sorting_disabled{
    border: 1px solid #f4f4f4;
  }
</style>

<div class="wrapper">

<header class="main-header">
  <a href="index.php" class="logo">
    <span class="logo-mini"><b><i class="fa fa-money"></i></b></span>
    <span class="logo-lg"><b>SI</b>Keuangan</span>
  </a>

  <nav class="navbar navbar-static-top">
    <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
      <span class="sr-only">Toggle navigation</span>
    </a>

    <div class="navbar-custom-menu">
      <ul class="nav navbar-nav">
        <li class="dropdown user user-menu">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown">
            <img src="../gambar/sistem/user.png" class="user-image">
            <span class="hidden-xs"><?= $_SESSION['nama']; ?> - <?= $_SESSION['level']; ?></span>
          </a>
        </li>
        <li>
          <a href="logout.php"><i class="fa fa-sign-out"></i> LOGOUT</a>
        </li>
      </ul>
    </div>
  </nav>
</header>

<aside class="main-sidebar">
<section class="sidebar">

  <div class="user-panel">
    <div class="pull-left image">
      <img src="../gambar/sistem/user.png" class="img-circle">
    </div>
    <div class="pull-left info">
      <p><?= $_SESSION['nama']; ?></p>
      <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
    </div>
  </div>

  <ul class="sidebar-menu" data-widget="tree">
    <li class="header">MAIN NAVIGATION</li>

    <li>
      <a href="index.php">
        <i class="fa fa-dashboard"></i> <span>DASHBOARD</span>
      </a>
    </li>

    <?php if($_SESSION['level'] == 'admin'){ ?>
    <li>
      <a href="kategori.php">
        <i class="fa fa-folder"></i> <span>DATA KATEGORI</span>
      </a>
    </li>
    <?php } ?>

    <li>
      <a href="project_manajemen.php">
        <i class="fa fa-folder"></i> <span>PROJECT</span>
      </a>
    </li>

    <li>
      <a href="transaksi.php">
        <i class="fa fa-folder"></i> <span>DATA TRANSAKSI</span>
      </a>
    </li>

    <li class="treeview">
      <a href="#">
        <i class="fa fa-hand-paper-o"></i>
        <span>HUTANG PIUTANG</span>
        <span class="pull-right-container">
          <i class="fa fa-angle-left pull-right"></i>
        </span>
      </a>
      <ul class="treeview-menu">
        <li><a href="hutang.php"><i class="fa fa-circle-o"></i> Catatan Hutang</a></li>
        <li><a href="piutang.php"><i class="fa fa-circle-o"></i> Catatan Piutang</a></li>
      </ul>
    </li>

    <li>
      <a href="bank.php">
        <i class="fa fa-building"></i> <span>REKENING BANK</span>
      </a>
    </li>

    <li>
      <a href="laporan.php">
        <i class="fa fa-file"></i> <span>LAPORAN</span>
      </a>
    </li>

    <li>
      <a href="gantipassword.php">
        <i class="fa fa-lock"></i> <span>GANTI PASSWORD</span>
      </a>
    </li>

    <li>
      <a href="logout.php">
        <i class="fa fa-sign-out"></i> <span>LOGOUT</span>
      </a>
    </li>

  </ul>
</section>
</aside>
