<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="user-scalable=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="<?php echo base_url() ?>assets/images/logo.png">
<title><?php echo get_current_setting("system_name"); ?></title>
<!-- HTML5 shim and Respond.js for 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.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->

<!-- Bootstrap -->
<link href='http://fonts.googleapis.com/css?family=Lora' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway' rel='stylesheet' type='text/css'>
<link href="<?php echo base_url() ?>assets/css/bootstrap.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/metisMenu.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/font-awesome.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/ionicons.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/c3.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/select2.css" rel="stylesheet">
<link href="<?php echo base_url() ?>assets/css/bootstrap-datepicker.css" rel="stylesheet">   
<link rel="stylesheet" type="text/css" href="<?php echo base_url() ?>assets/css/dataTable.min.css"/>  
<link href="<?php echo base_url() ?>assets/css/my-style.css" rel="stylesheet">
    

</head>
<body>

<div id="wrapper">
<div class="row">
<header>
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12 headerbar">
<div class="col-xs-4 col-sm-4 col-md-4 col-lg-4 left-headerbar">
<ul class="leftheader-menu">
<li><a href=""><?php echo get_current_setting("system_name"); ?></a></li>
<li class="hide-class"><a class="hide-nav" href=""><i class="fa fa-bars"></i></a></li>
</ul>
</div>
<!-- End left header-->

<div class="col-xs-8 col-sm-8 col-md-8 col-lg-8 right-headerbar">
<div class="rightheader-menu">


<div class="header-nav-profile">
    <a id="profile" href=""><img src="<?php echo base_url() ?>assets/images/avatar.jpg" alt="" />
        <span class="profile-info"><?php echo $this->session->userdata("username"); ?>
<small><?php echo ucwords(user_type()); ?></small>
</span><span class="caret"></span>
    </a>
    <ul class="dropdown-profile">
        <li><a href="<?php echo site_url('Profile'); ?>"><i class="fa fa-user"></i>&nbsp;&nbsp;&nbsp;Profile</a></li>
        <li><a href="<?php echo site_url('Profile/change_password'); ?>"><i class="fa fa-exchange"></i>&nbsp;&nbsp;&nbsp;Change Password</a></li>
        <li><a href="<?php echo site_url('Login/logout') ?>"><i class="fa fa-power-off"></i>&nbsp;&nbsp;&nbsp;Logout</a></li>
    </ul>
</div>
<!--End Header-nav-provile -->
</div>
</div>
<!-- End Right header-->

<!-- End Header-->
<!--Start Sidebar-->
</div>
</header>

<section>
<div class="content-area">
<aside>
<div class="sidebar">

<ul id="menu" class="menu-helper">
<li><a class="active-menu" href="<?php echo site_url('Dashboard') ?>"><i  class="fa fa-tachometer"></i>
<span class="title">Dashboard</span></a></li>

<li class="has-sub">
<a href="#"><i class="fa fa-exchange"></i>
<span class="title">Transfer</span></a>
<ul class="collapse">
    <li><a href="<?php echo site_url('Transfer') ?>"><i class="fa fa-paper-plane-o"></i></i>Send Money</a></li>
    <li><a href="<?php echo site_url('Payment') ?>"><i class="fa fa-credit-card"></i>Payment</a></li>
    <li><a href="<?php echo site_url('Transfer/transfer_invoice_list') ?>"><i class="fa fa-file-text"></i>Send Invoices</a></li>
    <li><a href="<?php echo site_url('Payment/payment_invoice_list') ?>"><i class="fa fa-file-text"></i>Payment Invoices</a></li>
</ul>
</li>
<?php if(user_type()=="admin"){ ?>
<li class="has-sub">
<a href="#"><i class="fa fa-user"></i>
<span class="title">Agent Management</span></a>
<ul class="collapse">
    <li><a href="<?php echo site_url('Agent') ?>"><i class="fa fa-user-plus"></i>Add Agent</a></li>
    <li><a href="<?php echo site_url('Agent/manage') ?>"><i class="fa fa-table"></i>List Agent</a></li>
</ul>
</li>

<li class="has-sub">
<a href="#"><i class="fa fa-cog"></i>
<span class="title">Administration</span></a>
<ul class="collapse">
    <li><a href="<?php echo site_url('Admin') ?>"><i class="fa fa-users"></i>Add Admin</a></li>
	<li><a href="<?php echo site_url('Admin/manage') ?>"><i class="fa fa-table"></i>Manage Admin</a></li>
	<li><a href="<?php echo site_url('Fee') ?>"><i class="fa fa-usd"></i>Manage Fee</a></li>
	<li><a href="<?php echo site_url('Transfer/manage') ?>"><i class="fa fa-pencil-square-o"></i>Manage Transfer</a></li>
	<?php if($this->config->item('offline')=='YES'){ ?>
	<li><a href="<?php echo site_url('Export') ?>"><i class="fa fa-file"></i>Export Offline Data</a></li>
    <?php }else{ ?>
	<li><a href="<?php echo site_url('Export/import') ?>"><i class="fa fa-file"></i>Import Offline Data</a></li>
	<?php } ?>
	<li><a href="<?php echo site_url('Settings') ?>"><i class="fa fa-cog"></i>Settings</a></li>
	<li><a href="<?php echo site_url('Settings/change_logo') ?>"><i class="fa fa-eye"></i>Change Logo</a></li>
	</ul>
</li>

<li class="has-sub">
<a href="#"><i class="fa fa-area-chart"></i>
<span class="title">Reports</span></a>
<ul class="collapse">
    <li><a href="<?php echo site_url('Reports/transfer_report') ?>"><i class="fa fa-angle-double-right"></i>Transfer Report</a></li>
	<li><a href="<?php echo site_url('Reports/Payment_report') ?>"><i class="fa fa-angle-double-right"></i>Payment Report</a></li>
	<li><a href="<?php echo site_url('Reports/agent_wise_transfer_report') ?>"><i class="fa fa-angle-double-right"></i>Agent Wise Transfer Report</a></li>
	<li><a href="<?php echo site_url('Reports/agent_wise_payment_report') ?>"><i class="fa fa-angle-double-right"></i>Agent Wise Payment Report</a></li>
</ul>
</li>

<?php } ?>

<li class="has-sub">
<a href="#"><i class="fa fa-user"></i>
<span class="title">Profile</span></a>
<ul class="collapse">
    <li><a href="<?php echo site_url('Profile') ?>"><i class="fa fa-user"></i>My Profile</a></li>
	<li><a href="<?php echo site_url('Profile/change_password') ?>"><i class="fa fa-key"></i>Change Password</a></li>	
</ul>
</li>

</ul>
</div>
</aside>
<!--End Sidebar-->