<?php 
session_start();
//error_reporting(0); 
$success="";
if(isset($_SESSION['SESS_LOGGEDIN']) == FALSE) {
    header("location: " . $config_basedir."login.php");
}

require("config.php");
require("db.php");
?>
<?php

$seller= $_SESSION['SESS_USERID']; 

$sql = mysqli_query($db,"SELECT * FROM logins WHERE id='$seller'");
 
// Place image in the folder 

$numrow=mysqli_fetch_assoc($sql);
$loginrow['id'] = $numrow['id'];
//$profile = $numrow['profile'];
$walletid = $numrow['walletid'];
$member_no = $numrow['member_no'];
$forename = $numrow['firstname'];
$surname = $numrow['lastname'];
$interest_rate = $numrow['interest_rate'];
$profit = $numrow['profit'];
$max_period = $numrow['max_period'];
$max_invest= $numrow['max_invest'];
$invest_period = $numrow['invest_period'];
$invest_amt = $numrow['invest_amt'];
$ver=$numrow['verified'];
$deposit=$numrow['balance'];
//$user_id = $numrow['id']; //added
if (isset($_POST['details'])) {
	
    if ($ver==0){
        header("location: " . $config_basedir."verify.php");
    }
    else if($ver==1){
        $success="<div class='error' style='margin-bottom:0px;font-size:17px;'>Awaiting Verification</div>";
    }
    else if($deposit==0){
        header("location: " . $config_basedir."deposit.php");
    }
    else if($ver==2){
        header("location: " . $config_basedir."trade_now.php");
    }
    else{
    }
   
}
?>

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


<!-- Mirrored from cryptdash.vercel.app/wallet.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 14 Jun 2023 19:01:17 GMT -->
<!-- Added by HTTrack --><meta http-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack -->
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="shortcut icon" href="assets/img/favicon.ico" type="image/x-icon">
  <link rel="stylesheet" href="assets/css/bootstrap_custom.css">
  <link rel="stylesheet"
    href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200">
  <link rel="stylesheet" href="assets/css/nice-select.css">
  <link rel="stylesheet" href="assets/css/styles.css">
  <title>Alpha Elite Trade - Information</title>
</head>

<body>
  <div class="d-flex wrapper" id="wrapper">
    <!-- Sidebar -->
    <div id="sidebar-wrapper" class="sidebar-wrapper">
      <div class="sidebar-heading">
        <a href="index-2.html">
          <img id="logo" src="assets/img/logodash.png" alt="">
        </a>
      </div>
      <nav class="sidebar mb-4">
        <ul class="nav flex-column" id="nav_accordion">
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="trade.php">
              <img src="assets/img/dashboard_icon_inactive.png" alt="">
              <span class="fw-semibold">Dashboard</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="exchange.html">
              <span class="material-symbols-outlined fw-lighter">
                sync
              </span>
              <span class="fw-semibold">Exchange</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="price.html">
              <span class="material-symbols-outlined fw-lighter">
                payments
              </span>
              <span class="fw-semibold">Prices</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link active d-flex gap-2 align-items-center" href="wallet.html">
              <span class="material-symbols-outlined fw-lighter">
                account_balance_wallet
              </span>
              <span class="fw-semibold">Wallets</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="promotions.html">
              <span class="material-symbols-outlined fw-lighter">
                percent
              </span>
              <span class="fw-semibold">Promotions</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="activities.html">
              <span class="material-symbols-outlined fw-lighter">
                insights
              </span>
              <span class="fw-semibold">Activities</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="notifications.html">
              <span class="material-symbols-outlined fw-lighter">
                notifications_active
              </span>
              <span class="fw-semibold">Notifications</span>
            </a>
          </li>
          <li class="nav-item">
            <a class="nav-link d-flex gap-2 align-items-center" href="settings.html">
              <span class="material-symbols-outlined fw-lighter">
                settings
              </span>
              <span class="fw-semibold">Settings</span>
            </a>
          </li>

          <li class="nav-item has-submenu">
            <a class="nav-link d-flex justify-content-between align-items-center" href="#">
              <span class="d-flex align-items-center gap-2">
                <span class="material-symbols-outlined fw-light">
                  construction
                </span>
                <span class="fw-semibold">Utilities</span>
              </span>
              <span class="material-symbols-outlined">
                arrow_drop_down
              </span>
            </a>
            <ul class="submenu collapse ps-2">
              <li class="mt-2">
                <a class="nav-link" href="protected.html">Protected Page</a>
              </li>
              <li class="mt-2">
                <a class="nav-link" href="404.html">404 Error</a>
              </li>
            </ul>
          </li>
          <li class="nav-item has-submenu">
            <a class="nav-link d-flex justify-content-between align-items-center" href="#">
              <span class="d-flex align-items-center gap-2">
                <span class="material-symbols-outlined fw-light">
                  work
                </span>
                <span class="fw-semibold">Authentication</span>
              </span>
              <span class="material-symbols-outlined">
                arrow_drop_down
              </span>
            </a>
            <ul class="submenu collapse ps-2">
              <li class="mt-2">
                <a class="nav-link" href="signin.html">Sign In</a>
              </li>
              <li class="mt-2">
                <a class="nav-link" href="signup.html">Sign Up</a>
              </li>
            </ul>
          </li>

        </ul>
        <div class="lang-select d-flex justify-content-center">
          <select id="select">
            <option value="english">English</option>
            <option value="bangla">Bangla</option>
            <option value="arabic">Arabic</option>
          </select>
        </div>
      </nav>
    </div>


    <!-- Page Content -->
    <div id="page-content-wrapper" class="page-content-wrapper">
      <nav class="navbar navbar-expand-lg py-lg-3 px-2 px-lg-4 d-flex fixed-top justify-content-between">
        <div class="d-flex align-items-center">
          <div class="d-flex align-items-center d-lg-none">
            <span class="material-symbols-outlined menu-toggle" id="menu-toggle">
              menu
            </span>
          </div>
          <div class="d-none d-xl-block">
            <form class="d-flex align-items-center search-form p-2">
              <input type="text" placeholder="Search Here...">
              <span class="material-symbols-outlined"> search </span>
            </form>
          </div>
        </div>

        <div class="d-flex gap-3 p-lg-2 p-lg-0 align-items-center justify-content-end">
          <div class="dropdown">
            <a class="nav-icon" href="#" id="navbarDropdown1" role="button" data-bs-toggle="dropdown"
              aria-expanded="false">
              <span class="material-symbols-outlined fw-light d-flex">
                comment
              </span>
              <span class="dot"></span>
            </a>
            <div class="dropdown-menu message rounded border-0 shadow" aria-labelledby="navbarDropdown1"
              onclick="event.stopPropagation()">
              <div class="border-b">
                <span class="fw-bold lead-text text-center d-block pb-2">Message</span>
              </div>
              <div>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_1.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <p class="mb-0">Hi, Whats going on?</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_6.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Elisee Houessou</span>
                    <p class="mb-0">Hi, Whats going on?</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_3.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <p class="mb-0">Hi, Whats going on?</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_6.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Guillaume Apithy</span>
                    <p class="mb-0">Hi, Whats going on?</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_5.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <p class="mb-0">Hi, Whats going on?</p>
                  </div>
                </a>
              </div>
            </div>
          </div>

          <div class="dropdown">
            <a class="nav-icon" href="#" id="navbarDropdown2" role="button" data-bs-toggle="dropdown"
              aria-expanded="false">
              <span class="material-symbols-outlined fw-light d-flex">
                notifications_active
              </span>
              <span class="dot"></span>
            </a>
            <div class="dropdown-menu notification rounded border-0 shadow" aria-labelledby="navbarDropdown1"
              onclick="event.stopPropagation()">
              <div class="border-b">
                <span class="fw-bold lead-text text-center d-block pb-2">Notifications</span>
              </div>
              <div>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_1.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <span class="small d-inline-block mb-2">Commented on your post</span>
                    <p class="mb-0">Place the files in the root directory</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_2.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <span class="small d-inline-block mb-2">Commented on your post</span>
                    <p class="mb-0">Place the files in the root directory</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_3.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <span class="small d-inline-block mb-2">Commented on your post</span>
                    <p class="mb-0">Place the files in the root directory</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_4.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <span class="small d-inline-block mb-2">Commented on your post</span>
                    <p class="mb-0">Place the files in the root directory</p>
                  </div>
                </a>
                <a href="#" class="message-box">
                  <div><img src="assets/img/chat_5.png" alt="avatar"></div>
                  <div class="d-flex flex-column">
                    <span class="large fw-bold text-white">Gaël Lokossou</span>
                    <span class="small d-inline-block mb-2">Commented on your post</span>
                    <p class="mb-0">Place the files in the root directory</p>
                  </div>
                </a>
              </div>
            </div>
          </div>

          <div class="nav-item dropdown">
            <a class="d-flex gap-2 align-items-center" href="#" id="navbarDropdown4" role="button"
              data-bs-toggle="dropdown" aria-expanded="false">
              <img height="60" width="60" class="img-fluid" src="assets/img/avatar.png" alt="user">
              <div class="d-flex flex-column d-none d-xl-block">
                <p class="mb-0 text-white fw-semibold">Kim Griffith</p>
                <span class="small text-white">Admin</span>
              </div>
            </a>
            <ul class="dropdown-menu dropdown-menu-end user shadow border-0" aria-labelledby="navbarDropdown4"
              onclick="event.stopPropagation()">
              <li><span class="px-3 d-inline-block">Welcome Kim!</span></li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-2" href="#">
                  <span class="material-symbols-outlined fw-light">
                    account_circle
                  </span>
                  Profile</a>
              </li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-2" href="#">
                  <span class="material-symbols-outlined fw-light"> chat </span>
                  Message</a>
              </li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-2" href="#">
                  <span class="material-symbols-outlined fw-light">
                    event_available
                  </span>
                  Taskboard</a>
              </li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-2" href="#">
                  <span class="material-symbols-outlined fw-light"> support </span>
                  Support</a>
              </li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-2" href="settings.html">
                  <span class="material-symbols-outlined fw-light"> settings </span>
                  Settings</a>
              </li>
              <li>
                <a class="dropdown-item d-flex align-items-center gap-1" href="#">
                  <span class="material-symbols-outlined fw-light"> logout </span>
                  Log Out</a>
              </li>
            </ul>
          </div>
        </div>
        <!-- For pc -->
      </nav>

      <div class="container-fluid main-content px-2 px-lg-4">
        <div class="row my-2 g-3 g-lg-4">
          <div class="col-md-6 col-lg-5 col-xxl-4">
		  <?php
                        function display_currency($currency){

                            foreach($currency as $currence){
                                echo $currence;
                            }
                        }
                        $username = $_SESSION['SESS_USERNAME'];
                        $currency = array();
                        $query = mysqli_query($db,"SELECT * FROM logins WHERE username='$username'");
                        $user_data = mysqli_fetch_array($query);
                        if($user_data['currency']==mysqli_real_escape_string($db,'USD')){
                            $currency[]='$';
                        }
                        else if($user_data['currency']==mysqli_real_escape_string($db,'GBP')){
                            $currency[]='£';
                        }
                        else if($user_data['currency']==mysqli_real_escape_string($db,'EUR')){
                            $currency[]='€';
                        }
                        else if($user_data['currency']==mysqli_real_escape_string($db,'AUD')){
                            $currency[]='$';
                        }
                        else if($user_data['currency']==mysqli_real_escape_string($db,'CAD')){
                            $currency[]='$';
                        }
                        $seller= $_SESSION['SESS_USERID']; 
                        $sql = mysqli_query($db,"SELECT * FROM logins WHERE id='$seller'");

                        $numrow=mysqli_fetch_assoc($sql);
                        $balc=$numrow['balance'];
                        ?>
            <div class="wallet-balance">
              <div class="left-wrapper">
                <div class="left">
                  <div class="d-flex align-items-center gap-2 mb-4">
                    <img src="assets/img/crypto/bal.png" alt="">
                    
                  </div>
                  <span>Total Balance</span>
                  <h2 class="text-white mt-2" style="color: green !important"><?php display_currency($currency); echo' '. $balc ?>.00</h2>
				  
                  <!--<span class="primary">0.3475948</span>-->
                  <div class="d-flex gap-3 pt-4">
                    <button class="primary-btn-lg">Withdraw</button>
                    <button class="outline-btn-lg">Deposit</button>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="col-md-6 col-lg-7 col-xxl-7">
            <div class="right">
              <div class="py-3">
                <div class="d-flex  justify-content-between align-items-end">
                  <div class="d-flex flex-column">
                    <span>Exchange Balance</span>
                    <span class="fw-bold text-white pg-large my-1">0.397466349</span>
                    <span class="primary">4,897.94 USD</span>
                  </div>
                  <div class="d-flex flex-column align-items-end">
                    <img src="assets/img/chart_green_3.png" alt="">
                    <span class="fw-bold small text-white mt-2">+3.89%</span>
                  </div>
                </div>
                <div class="green-bar mt-2">
                  <div class="inner"></div>
                </div>
              </div>
              <div class="py-3">
                <div class="d-flex  justify-content-between align-items-end">
                  <div class="d-flex flex-column">
                    <span>Exchange Balance</span>
                    <span class="fw-bold text-white pg-large my-1">0.397466349</span>
                    <span class="primary">4,897.94 USD</span>
                  </div>
                  <div class="d-flex flex-column align-items-end">
                    <img src="assets/img/chart_red_3.png" alt="">
                    <span class="fw-bold small text-white mt-2">+3.89%</span>
                  </div>
                </div>
                <div class="red-bar mt-2">
                  <div class="inner"></div>
                </div>
              </div>
            </div>
          </div>
        </div>

        <!-- Tables -->
        <div class="row my-2 g-3 gx-lg-4 pb-3">
          <div class="col-11">
            <div class="mainchart px-3 px-md-4 py-3 py-lg-4 ">
              <div class="d-flex justify-content-between flex-wrap gap-4">
                <h5 class="mb-0">Today's Cryptocurrency Prices</h5>
              </div>
              <div class="pb-2 pt-3 price-table">
                <table>
                  <thead>
                    <tr>
                      <th class="fw-bold">Asset</th>
                      <th class="fw-bold">On Orders</th>
                      <th class="fw-bold">Available Balance</th>
                      <th class="fw-bold">Total Balances</th>
                      <th class="fw-bold">24H Market</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/bitcoin.png" alt="">
                        Bitcoin (BTC)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/binance.png" alt="">
                        Binance (BNB)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/dash.png" alt="">
                        Dashcoin (DTC)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="secondary">-0.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/digibyte.png" alt="">
                        Digibyte (DGB)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/dogecoin.png" alt="">
                        Dogecoin (DOGE)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/ellaism.png" alt="">
                        Ellasiam (ELLA)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="secondary">-1.53%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/etherium.png" alt="">
                        Ethereum (ETH)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>
                      <td class="secondary">-0.45%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/monero.png" alt="">
                        Monero (MNR)
                      </td>
                      <td>$326,600</td>
                      <td>$303,800</td>
                      <td>$880,423</td>

                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>

                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/tron.png" alt="">
                        Troncoin (TRN)
                      </td>
                      <td>$377,600</td>

                      <td>$303,780</td>
                      <td>$112,423</td>

                      <td class="primary">+2.33%</td>
                    </tr>
                    <tr>
                      <td class="d-flex align-items-center gap-2">
                        <img src="assets/img/crypto/tether.png" alt="">
                        Tether (USDT)
                      </td>
                      <td>$326,600</td>

                      <td>$303,800</td>
                      <td>$880,423</td>

                      <td class="secondary">+0.25%</td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </div>
          </div>
        </div>

        <div class="row py-2 g-3 g-lg-4 top-border footer">
          <div class="col-lg-6">
            <span class="text-center text-lg-start d-block w-100">©2023. All Rights Reserved By <a href="#" class="primary">Alpha Lite Trade.</a></span>
          </div>
          <div class="col-lg-6">
            <ul
              class="d-flex gap-2 gap-xl-4 p-0 align-items-center flex-wrap justify-content-center justify-content-lg-end">
              <li><a href="#">Help Center</a></li>
              <li><a href="#">Privacy</a></li>
              <li><a href="#">Terms of Service</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
  </div>

  <!-- Js Scripts -->
  <script src="../cdn.jsdelivr.net/npm/bootstrap%405.0.0-beta3/dist/js/bootstrap.bundle.min.js"></script>
  <script src="../code.jquery.com/jquery-3.5.1.min.js"></script>
  <script src="assets/js/jquery.nice-select.js"></script>
  <script src="assets/js/main.js"></script>
</body>


<!-- Mirrored from cryptdash.vercel.app/wallet.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 14 Jun 2023 19:01:18 GMT -->
</html>