<!DOCTYPE html>
<html lang="zxx">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title> Swaraj MCX Trading</title>
    <!-- favicon -->
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
    <!-- bootstrap -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/bootstrap.min.css">
    <!-- fontawesome icon  -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/fontawesome.min.css">
    <!-- flaticon css -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/fonts/flaticon.css">
    <!-- animate.css -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/animate.css">
    <!-- magnific popup -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/modal-video.min.css">
    <!-- slick css -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/slick.css">
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/slick-theme.css">
    <!-- toastr js -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/toastr.min.css">
    <!-- stylesheet -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/style.css">
    <!-- responsive -->
    <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/responsive.css">
        <link rel="stylesheet" href="<?php echo base_url();?>frontend/assets/css/jquery.dataTables.css">
        <!-- jquery -->
        <script src="<?php echo base_url();?>frontend/assets/js/jquery.js"></script>
        <!-- popper js -->
        <script src="<?php echo base_url();?>frontend/assets/js/popper.min.js"></script>
        <!-- bootstrap -->
        <script src="<?php echo base_url();?>frontend/assets/js/bootstrap.min.js"></script>
</head>

    <body class="homepage-3">

        <div class="notification-alert">
            <div class="notice-list">
                
            </div>
        </div>

        <!-- preloader begin-->
        <div class="preloader">
            <img src="<?php echo base_url();?>frontend/assets/img/tenor.gif" alt="">
        </div>
        <!-- preloader end -->

        <div class="mobile-navbar-wrapper">

            <!-- header begin -->
            <div class="header header-style-4" id="header">
                <div class="top">
                    <div class="container">
                        <div class="row">
                            <div class="col-xl-5 col-lg-3">
                                <div class="welcome-text">
                                    <p>Email - info@gurutrader.in</p>
                                </div>
                            </div>
                            <div class="col-xl-7 col-lg-9 d-xl-flex d-lg-flex d-block align-items-center">
                                <div class="part-right">
                                    <ul>
                                        
                                        <li>
                                            <div class="user-panel">
                                            <?php if(!$this->session->userdata("user")){?>
                                                <span>
                                                    <a href="<?php echo base_url();?>login" class="login-btn">Login</a>or</span>
                                                    <a href="<?php echo base_url();?>register" class="register-btn">Register</a>
                                                    <?php }else{ echo '<span>Hi, '.$this->session->userdata("name").' </span>';?>
                                                    <a href="<?php echo base_url();?>logout" class="register-btn">Logout</a>
                                                    <?php }?>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="bottom">
                    <div class="container">
                        <div class="row justify-content-between">
                            <div class="col-xl-3 col-lg-2 d-xl-flex d-lg-flex d-block align-items-center">
                                <div class="row">
                                    <div class="col-4 d-xl-none d-lg-none d-block">
                                        <button class="navbar-toggler" type="button">
                                            <span class="dag"></span>
                                            <span class="dag2"></span>
                                            <span class="dag3"></span>
                                        </button>    
                                    </div>
                                    <div class="col-xl-12 col-lg-12 col-8 d-xl-block d-lg-block d-flex align-items-center justify-content-end">
                                        <div class="logo">
                                            <a href="<?php echo base_url();?>">
                                                <img src="<?php echo base_url();?>frontend/assets/img/logo2.png" alt="">
                                            </a>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-xl-9 col-lg-10">
                                <div class="mainmenu">
                                	<?php if($this->session->userdata("user")){?>
                                    <div class="d-xl-none d-lg-none d-block">
                                        <div class="user-profile">
                                            <div class="part-img">
                                                <img src="<?php echo base_url();?>frontend/assets/img/member-1.jpg" alt="">
                                            </div>
                                            <div class="user-info">
                                                <span class="user-name"><?php echo $this->session->userdata("name");?></span>
                                                <span class="user-balance">Bal : <?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();

                    echo $wallet=$l->left_amt;}else{echo $wallet=0;}?></span>
                                            </div>
                                            <div class="log-out-area">
                                                <a href="<?php echo base_url();?>logout">Log out</a>
                                            </div>
                                        </div>
                                    </div>
                                    <?php }else{?>
                                    <div class="d-xl-none d-lg-none d-block">
                                        <div class="user-profile">
                                            <div class="part-img">
                                                <img src="<?php echo base_url();?>frontend/assets/img/member-1.jpg" alt="">
                                            </div>
                                            <div class="user-info">
                                                <span class="user-name">Hello Guest</span>
                                                
                                            </div>
                                        </div>
                                    </div>
                                    <?php }?>
                                    <nav class="navbar navbar-expand-lg">              

                                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                                            <ul class="navbar-nav ml-auto">
                                                <li class="nav-item">
                                                    <a class="nav-link" href="<?php echo base_url();?>">Home</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" href="<?php echo base_url();?>about">About</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" href="<?php echo base_url();?>contact">Contact</a>
                                                </li>
                                               
                                                <li class="nav-item">
                                                    <a class="nav-link" href="<?php echo base_url();?>faqs">FAQs</a>
                                                </li>
                                                <li class="nav-item">
                                                    <a class="nav-link" href="<?php echo base_url();?>terms">Privacy & Terms</a>
                                                </li>
                                                <?php if($this->session->userdata("user")){?>
                                                <li class="nav-item dropdown show">
                                                    <a class="nav-link dropdown-toggle" href="#" role="button" id="db-Dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                        My account
                                                    </a>
                                                    <div class="dropdown-menu" aria-labelledby="db-Dropdown">
                                                        <a class="dropdown-item" href="<?php echo base_url();?>dashboard">Dashboard</a>
                                                        <a class="dropdown-item" href="<?php echo base_url();?>deposite">Deposite</a>
                                                        <a class="dropdown-item" href="<?php echo base_url();?>withdrawls">Withdrawls</a>
                                                        <a class="dropdown-item" href="<?php echo base_url();?>transactions">My Transactions</a>
                                                        <a class="dropdown-item" href="<?php echo base_url();?>account">My Profile</a>
                                                        <a class="dropdown-item" href="<?php echo base_url();?>logout">Logout</a>
                                                    </div>
                                                </li>
                                                <?php }?>
                                            </ul>
                                        </div>
                                    </nav>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>