<!DOCTYPE html>
<html lang="en" class=""><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Ample Commodity</title>
            <link rel="stylesheet" href="<?php echo base_url();?>newsite/toastr.min.css">
            <link rel="shortcut icon" href="https://demo.quixlab.com/tradix/assets/images/favicon.png" type="image/x-icon">
        <link rel="stylesheet" href="<?php echo base_url();?>newsite/custom.css">
        <link rel="stylesheet" href="<?php echo base_url();?>newsite/style.css">
       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">


        <script src="<?php echo base_url();?>newsite/jquery.min.js.download"></script>
     <script src="<?php echo base_url();?>newsite/bootstrap.bundle.min.js.download"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.2.0/socket.io.js"></script>
    </head>

    <body id="ok" class="ok">
        <div id="preloader" style="display: none;">
            <div class="sk-three-bounce">
                <div class="sk-child sk-bounce1"></div>
                <div class="sk-child sk-bounce2"></div>
                <div class="sk-child sk-bounce3"></div>
            </div>
        </div>
        <div id="main-wrapper" class="show">
            <div class="sidebar bg-primary">
    <div class="menu active">
        <ul class="show">
            <li class="active">
                <a href="<?php echo base_url();?>user" class="p-3 mb-1 rounded active" data-bs-toggle="tooltip" data-placement="right" title="Home">
                    <span><i class="fa fa-home text-white fs-4"></i></span>
                </a>
            </li>
            <li>
                <a href="<?php echo base_url();?>user/deposite" class="@exchange p-3 mb-1 rounded" data-bs-toggle="tooltip" data-placement="right" title="Deposite">
                    <span><i class="fa fa-inr text-white fs-4"></i></span>
                </a>
            </li>
            <li>
                <a href="<?php echo base_url();?>user/transactions" class="@exchange p-3 mb-1 rounded" data-bs-toggle="tooltip" data-placement="right" title="Transactions">
                    <span><i class="fa fa-exchange text-white fs-4"></i></span>
                </a>
            </li>
            <li>
                <a href="<?php echo base_url();?>user/account" class="@account p-3 mb-1 rounded" data-bs-toggle="tooltip" data-placement="right" title="Account">
                    <span><i class="fa fa-user text-white fs-4"></i></span>
                </a>
            </li>
            <li>
                <a href="<?php echo base_url();?>home/logout" class="@settings settings p-3 mb-1 rounded" data-bs-toggle="tooltip" data-placement="right" title="Logout">
                    <span><i class="fa fa-sign-out text-white fs-4"></i></span>
                </a>
            </li>
        </ul>
    </div>
</div>
<div class="right-content">
     <header class="header dashboard-header bg-white" style="position: fixed">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <nav class="
                        navbar navbar-expand-lg navbar-light
                        p-0
                        justify-content-between
                    ">
                    <a class="navbar-brand" href="https://demo.quixlab.com/tradix"><img src="<?php echo base_url();?>newsite/logo.png" loading="lazy" alt="…"></a>

                    <div class="dashboard-log my-2">
                        <div class="d-flex align-items-center">
                            <div class="account-money me-4 d-none d-md-block">
                                <ul>
                                    <li class="crypto  ">
                                        <span class="fw-semi-bold me-3">Wallet </span><i class="cc BTC"></i>
                                    </li>
                                    <li class="usd border">
                                        <span class="fw-semi-bold me-3 text-gray"><?php 	$this->db->order_by("trid","desc");

					$chk=$this->db->get_where("transaction",array("userid"=>$this->session->userdata("user")));

					if($chk->num_rows()>0){

                    $l=$chk->row();

                    $wallet=$l->left_amt;}else{$wallet=0;}echo $wallet;?></span>
                                    </li>
                                </ul>
                            </div>
                            <div class="profile-log dropdown">
                                <div class="user d-flex align-items-center" data-bs-toggle="dropdown">
                                    <span class="
                                            thumb
                                            bg-primary
                                            rounded-circle
                                            border
                                            d-flex
                                            align-items-center
                                            justify-content-center
                                            border
                                            me-3
                                            text-white
                                        "><i class="fa fa-user fs-5"></i></span>
                                    <div class="d-none d-sm-block">
                                        <span class="name fw-semi-bold me-3"><?php echo ' AMPU-'.$this->session->userdata("user");?></span>
                                        <span class="arrow"><i class="fa fa-angle-down"></i></span>
                                    </div>
                                </div>
                                <div class="dropdown-menu dropdown-menu-right">
                                    <a href="<?php echo base_url();?>user" class="dropdown-item">
                                        <i class="fa fa-dashboard"></i> Dashboard
                                    </a>
                                    <a href="<?php echo base_url();?>user/deposite" class="dropdown-item">
                                        <i class="fa fa-inr"></i> Deposite
                                    </a>
                                    <a href="<?php echo base_url();?>user/transactions" class="dropdown-item">
                                        <i class="fa fa-exchange"></i> Transactions
                                    </a>
                                    <a href="<?php echo base_url();?>user/account" class="dropdown-item">
                                        <i class="fa fa-user"></i> Profile
                                    </a>
                                    <a href="<?php echo base_url();?>home/logout" class="dropdown-item logout text-danger">
                                        <i class="fa fa-sign-out text-danger"></i>
                                        Logout
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                </nav>
            </div>
        </div>
    </div>
</header>