<?php
session_start();
@$userKey = $_SESSION['loginKey'];

if($userKey == "")
{
    echo "<script>window.open('login.php','_self')</script>";
}


include "control/activity.php";
$dd = new activity();


$table = "userdetails";
$condition = " where userKey='$userKey'";
$getuserdetails = $dd->single($table,$condition);

 $table = "admin_calculation";
 $condition =null;
 $getDetailsAdmin = $dd->single($table,$condition);
 $telegram = $getDetailsAdmin['telegram'];
 $fevicon = $getDetailsAdmin['favicon'];

?>



<!DOCTYPE html>
<html lang="en" translate="no">
<head>
    <meta charset="UTF-8">
    <link rel="icon" type="image/svg+xml" href="temp_img/<?= $fevicon; ?>">
    <meta name="google" content="notranslate">
    <meta name="robots" content="noindex,nofollow">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title><?= $getDetailsAdmin['title'];?></title>
    <link rel="stylesheet" href="css/slick.css" />
    <link rel="stylesheet" href="css/modules.css" />
    <link rel="stylesheet" href="css/style.css" />
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/slick.min.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
</head>
<body>
    <div id="app">
       <div class="mian RechargeHistory">
         <!--NavBar-->
         <div class="navbar">
            <div class="navbar-fixed" style="background: linear-gradient(90deg, rgb(207, 3, 5) 0%, rgb(242, 63, 58) 100%);">
                <div class="navbar__content">
                    <div onclick="clickToBack()" data-v-905dfe8c="" class="navbar__content-left"><img src="images/back.c3244ab0.png" alt="Back" class="back_img"></div>
                    <div data-v-905dfe8c="" class="navbar__content-center"><div data-v-905dfe8c="" class="navbar__content-title">Deposit history</div></div>
                    
                </div>
            </div>
        </div>
        <!--NavBar-->
<script>

function clickToBack()
{
  window.open('wallet.php','_self');
}
</script>
        <!--promotion-->
        <div class="infiniteScroll">
        <div data-v-3e34c735="" class="rechargeh__container-content">

     <?php
       $table = "funds_request";
       $condition = " where userKey_id='$userKey' order by 1 desc";
       $getRechargeHistory = $dd->fetch_multi($table,$condition);
       foreach($getRechargeHistory as $key){
      ?>


    <div data-v-3e34c735="" class="rechargeh__container-content__item">
        <div data-v-3e34c735="" class="rechargeh__container-content__item-header">
            <span data-v-3e34c735="" class="recharge_tit">Deposit</span>
            <div data-v-3e34c735="" class="recharge_right fail">
                <?= $key->funds_status; ?>
            </div>
        </div>
        <div data-v-3e34c735="" role="separator" class="van-divider van-divider--hairline divier"></div>
        <div data-v-3e34c735="" class="rechargeh__container-content__item-body">
            <div data-v-3e34c735=""><span data-v-3e34c735="">Balance</span><span data-v-3e34c735="" class="price">₹<?= $key->amount; ?></span></div>
            <div data-v-3e34c735=""><span data-v-3e34c735="">Type</span><span data-v-3e34c735="">Mahapay - UPI x QR</span></div>
            <div data-v-3e34c735=""><span data-v-3e34c735="">Time</span><span data-v-3e34c735=""><?= $key->request_date; ?></span></div>
            <div data-v-3e34c735="">
                <span data-v-3e34c735="">Order number</span>
                <div data-v-3e34c735="" class="order"><span data-v-3e34c735=""><?= $key->refrence_number; ?></span><img data-v-3e34c735="" src="images/copy1-88343644.png" alt="" /></div>
            </div>
        </div>
    </div>
  <?php } ?>
    
</div>
</div>
        <!--promotion-->

        </div>
       
    </div>
   
</body>

</html>