<?php
  $user_id  = $this->session->userdata('user_id');
  $role     = $this->session->userdata('user_role_id');
  $name     = $this->session->userdata('user_full_name');
?>

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8"> 
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title><?php echo PROJECT?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="<?php echo assets('bower_components/bootstrap/dist/css/bootstrap.min.css')?>">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="<?php echo assets('bower_components/font-awesome/css/font-awesome.min.css')?>">
  <!-- Ionicons -->
  <!-- <link rel="stylesheet" href="<?php echo assets('bower_components/Ionicons/css/ionicons.min.css')?>"> -->
  <!-- Theme style -->
  <link rel="stylesheet" href="<?php echo assets('dist/css/AdminLTE.min.css')?>">

  <!-- DataTables -->
  <!-- <link rel="stylesheet" href="<?php echo assets('bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css')?>">  -->

  <!-- MultiSelect -->
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css" />

  <!-- Date Picker -->
  <link rel="stylesheet" href="<?php echo assets('bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css')?>">

  <!-- Flexselect -->
  <link rel="stylesheet" href="<?php echo assets('dist/css/flexselect.css')?>">

  <!-- select2 css -->
  <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css" rel="stylesheet" />

  <!-- Offline css -->
  <link rel="stylesheet" href="<?php echo assets('dist/css/offline.css')?>">
  <link rel="stylesheet" href="<?php echo assets('dist/css/offline-english-language.css')?>">

  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="<?php echo assets('dist/css/skins/_all-skins.min.css')?>">

  <!-- custom style sheet -->
  <link rel="stylesheet" href="<?php echo assets('css/custom.css')?>">
  <link rel="stylesheet" href="<?php echo assets('css/jquery.pan.css')?>">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">

  <script>
    var session_role = <?php echo $role?>
  </script>
</head>
<body class="hold-transition skin-blue layout-top-nav">
  <img src="<?php echo assets('img/loading.gif')?>" id="loading" />

   <!-- Modal -->
      <div class="modal fade" id="popup_modal_lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-keyboard="false" data-backdrop="static">
        <div class="modal-dialog modal-lg">
          <div class="modal-content">
           <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4 class="modal-title"></h4>
            </div>
            <div class="modal-body">

            </div>
            <div class="modal-footer">

            </div>
          </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
      </div><!-- /.modal -->

      <div class="modal fade" id="popup_modal_sm" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true" data-keyboard="false" data-backdrop="static">
        <div class="modal-dialog">
          <div class="modal-content">
           <div class="modal-header">
              <button type="button" class="close" data-dismiss="modal">&times;</button>
              <h4 class="modal-title modal-title-sm"></h4>
            </div>
            <div class="modal-body modal-body-sm">

            </div>
            <div class="modal-footer modal-footer-sm">

            </div>
          </div><!-- /.modal-content -->
        </div><!-- /.modal-dialog -->
      </div><!-- /.modal -->

    <!-- /Modal End -->


<div class="wrapper">

   <header class="main-header" style="margin-bottom: 40px;">
         <div class="navbar navbar-default navbar-fixed-top cust_pink_bg">
            <div class="container-fluid">
              <div class="navbar-header">
                <a href="#" class="navbar-brand"><?php echo PROJECT?></a>
                <button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-main" style="background-color: transparent;">
                  <span class="icon-bar" style="color: #FFFFFF;background-color: #FFFFFF;"></span>
                  <span class="icon-bar" style="color: #FFFFFF;background-color: #FFFFFF;"></span>
                  <span class="icon-bar" style="color: #FFFFFF;background-color: #FFFFFF;"></span>
                </button>
              </div>
              <div class="navbar-collapse collapse" id="navbar-main">
                <ul class="nav navbar-nav">
                  <li class="dropdown" id="master">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="themes">SYSTEM SETTING <span class="caret"></span></a>
                    <ul class="dropdown-menu" aria-labelledby="themes">
                      <li id="exchange_rate"><a href="<?php echo base_url('master/masterctrl/exchange_rate_master')?>"><i class="fa fa-circle-o"></i> Exchange Rate</a></li>
                      <li id="hsn"><a href="<?php echo base_url('master/masterctrl/hsn_master')?>"><i class="fa fa-circle-o"></i> Hsn</a></li>
                      <li id="diamond"><a href="<?php echo base_url('master/masterctrl/diamond_master')?>"><i class="fa fa-circle-o"></i> Diamond Master </a></li>
                      <li id="customer_account"><a href="<?php echo base_url('master/masterctrl/account_master/5')?>"><i class="fa fa-circle-o"></i> Customer Account</a></li>
                      <li id="supplier_account"><a href="<?php echo base_url('master/masterctrl/account_master/6')?>"><i class="fa fa-circle-o"></i> Supplier Account</a></li>
                      <li id="broker_account"><a href="<?php echo base_url('master/masterctrl/account_master/23')?>"><i class="fa fa-circle-o"></i> Brokers </a></li>

                      <li id="city"><a href="<?php echo base_url('master/masterctrl/city_master')?>"><i class="fa fa-circle-o"></i> City</a></li>
                      <li id="state"><a href="<?php echo base_url('master/masterctrl/state_master')?>"><i class="fa fa-circle-o"></i> State</a></li>
                      <li id="country"><a href="<?php echo base_url('master/masterctrl/country_master')?>"><i class="fa fa-circle-o"></i> Country</a></li>

                      <!-- <li id="bank_rate"><a href="<?php echo base_url('master/masterctrl/bank_rate_master')?>"><i class="fa fa-circle-o"></i> Bank Rate Master</a></li> -->
                      <li id="user"><a href="<?php echo base_url('master/masterctrl/user_master')?>"><i class="fa fa-circle-o"></i> User</a></li>
                      
                      <!-- <li id="rapaport"><a href="<?php echo base_url('master/masterctrl/rapaport_master')?>"><i class="fa fa-circle-o"></i> RapaPort</a></li> -->
                      <!-- <li id="cust_utility"><a href="<?php echo base_url('utilityctrl')?>"><i class="fa fa-circle-o"></i> Customer Import</a></li> -->
                    </ul>
                  </li>
                  <!-- <li id="challan">
                    <a href="<?php echo base_url('challan/challanctrl/challan_master?action=view')?>">JANGAD ISSUE</a>
                  </li>
                  <li id="challan_return">
                    <a href="<?php echo base_url('challan/challanctrl/challan_return_master?action=view')?>">JANGAD RETURN</a>
                  </li> -->
                  
                  <!-- <li class="dropdown" id="invoice_section">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="themes">INVOICE <span class="caret"></span></a>
                    <ul class="dropdown-menu" aria-labelledby="themes">
                        <li id="product"><a href="<?php echo base_url('master/masterctrl/product_master')?>"><i class="fa fa-circle-o"></i> PRODUCT MASTER</a></li>
                        <li id="invoice"><a href="<?php echo base_url('invoice/invoicectrl/invoice_master?action=view')?>"><i class="fa fa-circle-o"></i> INVOICE</a></li>
                    </ul>
                  </li> -->
                  <li class="dropdown" id="purchase_section">
                    <a href="<?php echo base_url('purchase/purchasectrl/purchase_master?action=view')?>"  id="themes">PURCHASE</a>
                  </li>
                  <li class="dropdown" id="sales_section">
                    <a href="<?php echo base_url('sales/salesctrl/sales_master?action=view')?>" id="themes">SALES</a>
                  </li>

                   <li class="dropdown" id="voucher">
                    <a class="dropdown-toggle " data-toggle="dropdown" href="#" id="themes">VOUCHER <span class="caret"></span></a>
                    <ul class="dropdown-menu" aria-labelledby="themes">                     
                      <!-- payment -->
                      <li id="payment">
                        <a href="<?php echo base_url('voucher/payment?action=add')?>">
                          <i class="fa fa-circle-o"></i> 
                          PAYMENT
                        </a>
                      </li>
                      <!-- payment -->                    

                      <!-- receipt -->
                      <li id="receipt">
                        <a href="<?php echo base_url('voucher/receipt?action=add')?>">
                          <i class="fa fa-circle-o"></i> 
                          RECEIPT
                        </a>
                      </li>
                      <!-- receipt -->                    
                      
                    </ul>
                  </li> 

                  <li class="dropdown" id="report">
                    <a class="dropdown-toggle" data-toggle="dropdown" href="#" id="themes">REPORTS <span class="caret"></span></a>
                    <ul class="dropdown-menu" aria-labelledby="themes">
                      <li id="stock">
                        <a href="<?php echo base_url('report/Reportctrl/stock_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            STOCK REPORT
                        </a>
                      </li>
                      <li id="history">
                        <a href="<?php echo base_url('report/Reportctrl/history_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            HISTORY REPORT
                        </a>
                      </li>
                      <li id="issue">
                        <a href="<?php echo base_url('report/Reportctrl/issue_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            ISSUE REPORT
                        </a>
                      </li>
                      <li id="sold">
                        <a href="<?php echo base_url('report/Reportctrl/sold_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            SOLD REPORT
                        </a>
                      </li>
                      <li id="hold">
                        <a href="<?php echo base_url('report/Reportctrl/hold_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            HOLD REPORT
                        </a>
                      </li>
                      <!-- <li id="group">
                        <a href="<?php echo base_url('report/Reportctrl/group_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            GROUP REPORT
                        </a>
                      </li> -->
                      <li id="group_daily">
                        <a href="<?php echo base_url('report/Reportctrl/group_daily_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            GROUPWISE DAILY REPORT
                        </a>
                      </li>
                      <li id="certificate">
                        <a href="<?php echo base_url('report/Reportctrl/certificate_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            PENDING CERTIFICATE REPORT
                        </a>
                      </li>
                      <li id="diamond_summery">
                        <a href="<?php echo base_url('report/Reportctrl/diamond_summery?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            DIAMOND SUMMERY
                        </a>
                      </li>
                      <li id="r2net">
                        <a href="<?php echo base_url('report/Reportctrl/r2net_report?action=view')?>">
                          <i class="fa fa-circle-o"></i>
                            R2NET REPORT
                        </a>
                      </li>
                      <li id="sale"><a href="<?php echo base_url('report/reportctrl/sale_report')?>"><i class="fa fa-circle-o"></i> SALE REPORT</a></li>
                       <li id="hsn"><a href="<?php echo base_url('report/reportctrl/hsnwise_sale_report')?>"><i class="fa fa-circle-o"></i> HSN WISE SALE REPORT</a></li>
                       
                       <li id="purchase_report"><a href="<?php echo base_url('report/reportctrl/purchase_report')?>"><i class="fa fa-circle-o"></i> PURCHASE REPORT</a></li>
                        <li id="hsn_purchase_report"><a href="<?php echo base_url('purchase/purchasectrl/hsnwise_purchase_report')?>"><i class="fa fa-circle-o"></i> HSN WISE PURCHASE REPORT</a></li>
                    </ul>
                  </li>

                    <!-- <li class="dropdown" id="order_section">
                    <a href="<?php echo base_url('order/orderctrl/order_master?action=view')?>" id="themes">ORDER</a>
                  </li> -->
                </ul>
                <ul class="nav navbar-nav navbar-right">
                    <li class="dropdown user user-menu">
                      <a href="#">
                        <img src="<?php echo assets('dist/img/avatar7.png')?>" class="user-image" alt="User Image">
                        <span class="hidden-xs"><?php echo strtolower($name ?? '') ?></span>
                      </a>
                    </li>
                    <li class="dropdown user user-menu">
                      <a href="<?php echo base_url('loginctrl/logout')?>">SIGN OUT</a>
                    </li>
                </ul>
              </div>
            </div>
          </div>
      </header>
          <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" style="margin-top: 40px;">
  <?php
    // $this->load->view('templates/left_sidebar');
  ?>