<?php 
$user_id=$this->session->userdata('user_id');
$query=$this->db->query("select * from user  
   where user_id=".$user_id." ");
  $data='';
  foreach ($query->result() as $key => $user){
    $fname=$user->first_name;
$lname=$user->last_name;
  }

?>
<div class="d-flex justify-content-between">
    <div class="col-xs-12 col-sm-10 col-md-10 pull-left">
        <ul class="nav ace-nav">
            <li>
                <div class="dropdown">
                    <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown"><strong>+</strong></button>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo base_url('bank/name');?>">Create Bank</a></li>


                        <li> <a href="<?php echo base_url('user/category');?>">Sale Type</a></li>

                        <li><a href="<?php echo base_url('Purchases/category');?>">Purchase Category</a></li>

                        <li><a href="<?php echo base_url('Sale/category');?>">Wholesale Category </a></li>

                        <li><a href="<?php echo base_url('Worker/name');?>"> Employers Name</a></li>

                        <li><a href="<?php echo base_url('Expense/type');?>"> Expense Type</a></li>
                        <li><a href="<?php echo base_url('Loan/category');?>"> Loan Category</a></li>
                        <li><a href="<?php echo base_url('Pay_loan/category');?>"> Pay Loan Category</a></li>
                    </ul>
                </div>
            </li>
            <li>
                <h1>Function</h1>
            </li>


        </ul>


    </div>
    <div class="col-xs-12 col-sm-2 col-md-2 pull-right">
        <a id="logout" href="<?php echo site_url("user/logout ");?>" onclick="window.location='<?php echo site_url("user/logout ");?>'" class="btn"><i class="icon-off"></i>Logout</a>
    </div>
</div>
 <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>-->