<?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);
$passwordFrom = $getuserdetails['password'];
$walletBalance = $getuserdetails['wallet'];




$table = "admin_calculation";
$condition = null;
$getAdminDetails = $dd->single($table,$condition);
$upi_id = $getAdminDetails['upi_id'];
$title = $getAdminDetails['title'];
$getewayStatus = $getAdminDetails['geteway'];
$dollar = $getAdminDetails['dollar'];
$usdt = $getAdminDetails['usdt'];
?>



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

<head>
    <meta charset="UTF-8">
    <link rel="icon" type="image/svg+xml" href="./images/h5setting_20230808033047vpbk.ico">
    <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><?= $getAdminDetails['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>
    <style>
    .Recharger__USD__Process {
        display: none;
    }
    .Recharger__paytm__Process{
        display: none;
    }
    </style>
</head>

<body>
    <div id="app">

        <div class="Recharge__box">
            <div class="Recharge__container">
                <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 data-v-905dfe8c="" class="navbar__content-left" onclick="clicktoBack()">
                                <div data-v-905dfe8c="" class="backIcon"></div>
                            </div>
                            <div data-v-905dfe8c="" class="navbar__content-center">
                                <!---->
                                <div data-v-905dfe8c="" class="navbar__content-title">Deposit</div>
                            </div>
                            <div id="getDepositHistory" data-v-905dfe8c="" class="navbar__content-right">
                                <div data-v-643fef5d="" class="title">Deposit history</div>
                            </div>
                        </div>
                    </div>
                </div>


                <script>
                function clicktoBack() {
                    window.open('index.php', '_self');
                }


                $('#getDepositHistory').click(function(){
     
      window.open('RechargeHistory.php','_self');
  });
                </script>



                <div class="balanceAssets ye">
                    <div class="balanceAssets__header">
                        <div class="balanceAssets__header__left">
                            <img data-v-d42c1f7a="" src="./images/balance.png" alt="Balance">
                            Balance
                        </div>
                    </div>
                    <div class="balanceAssets__main">
                        <p data-v-d42c1f7a="">₹<?= round($walletBalance,2); ?></p>
                        <img data-v-d42c1f7a="" src="./images/balance-referesh.png" alt="Balance">
                    </div>
                    <div class="balanceAssets__tip">
                        <img data-v-d42c1f7a="" src="./images/cip-7ed1a634.png" alt="CIP">
                    </div>
                </div>
                <div data-v-3b47decf data-v-643fef5d>
                    <div class="Recharge__container-tabcard">
                        <!--div class="Recharge__container-tabcard__items ">
                            <div class="centers">
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img" src="./images/payNameIcon2_20230824183242ljgj.png" alt="">
                                </div>
                                <div data-v-741b09ea="" class="Recharge__container-tabcard__bot">E-Wallet </div>
                            </div>
                        </div-->
                        <!--div class="Recharge__container-tabcard__items ">
                            <div class="centers">
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img" src="./images/payNameIcon_20230824184753jw3f.png" alt="">
                                </div>
                                <div data-v-741b09ea="" class="Recharge__container-tabcard__bot">Paytm x QR </div>
                            </div>
                        </div-->
                        <div class="Recharge__container-tabcard__items active" id="Recharge__INR__container">
                            <div class="centers">
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img"
                                        src="./images/payNameIcon_202308080410066jdc.png" alt="">
                                </div>
                                <div data-v-741b09ea="" class="Recharge__container-tabcard__bot">UPI x QR </div>
                            </div>
                        </div>
                        <div class="Recharge__container-tabcard__items active" id="Recharge__USD__container">
                            <div class="centers">
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img"
                                        src="./images/ustd.png" alt="">
                                </div>
                                <div data-v-741b09ea="" class="Recharge__container-tabcard__bot">USDT (BEP 20)
                                </div>
                            </div>
                        </div>
                        <!-- <div class="Recharge__container-tabcard__items active" id="Recharge__Paytm__container">-->
                        <!--    <div class="centers">-->
                        <!--        <div class="Recharge__container-tabcard__top">-->
                        <!--            <img data-v-3b47decf="" class="img"-->
                        <!--                src="./images/paytm-etonline.png" alt="">-->
                        <!--        </div>-->
                        <!--        <div data-v-741b09ea="" class="Recharge__container-tabcard__bot">Paytm-->
                        <!--        </div>-->
                        <!--    </div>-->
                        <!--</div>-->
                        <!-- <div class="Recharge__container-tabcard__items ">
                            <div class="centers">
                                <div data-v-3b47decf="" class="gift"><span data-v-3b47decf="">+3%</span></div>
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img" src="./images/payNameIcon_2023080804094137ww.png" alt="">
                                </div>
                                <div data-v-3b47decf="" class="Recharge__container-tabcard__bot">USDT Bonus </div>
                            </div>
                        </div> -->
                        <!-- <div class="Recharge__container-tabcard__items ">
                            <div class="centers">
                                <div data-v-3b47decf="" class="gift"><span data-v-3b47decf="">+1%</span></div>
                                <div class="Recharge__container-tabcard__top">
                                    <img data-v-3b47decf="" class="img" src="./images/payNameIcon_20230808040928kyt8.png" alt="">
                                </div>
                                <div data-v-3b47decf="" class="Recharge__container-tabcard__bot">TRX Bonus </div>
                            </div>
                        </div> -->
                    </div>
                </div>
                <div class="Recharger__INR__Process">
                    <div class="Recharge__content">


                        <div class="Recharge__content-paymoney boxStyle rechjarge_amount" id="amountSelectionSection">

                            <div class="Recharge__content-paymoney__title">
                                <img data-v-f1c4791d="" src="./images/saveWallet-ce287b90.png" alt="Deposit amount">
                                <p data-v-f1c4791d="">Deposit amount</p>
                            </div>
                            <div class="Recharge__content-paymoney__money-list">
                                <div onclick="selectAmountForDeposit('300')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 300
                                </div>
                                <div onclick="selectAmountForDeposit('500')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 500
                                </div>
                                <div onclick="selectAmountForDeposit('1000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 1K
                                </div>
                                <div onclick="selectAmountForDeposit('10000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 10K
                                </div>
                                <div onclick="selectAmountForDeposit('50000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 50K
                                </div>
                                <div onclick="selectAmountForDeposit('100000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 100K
                                </div>
                            </div>
                            <div class="Recharge__content-paymoney__money-input">
                                <div data-v-f1c4791d="" class="place-div">₹</div>
                                <div class="van-cell van-field amount-input">
                                    <div class="van-cell__value van-field__value">
                                        <div class="van-field__body">
                                            <input type="tel" inputmode="numeric" id="fromAmount"
                                                class="van-field__control" placeholder="Please enter the amount">
                                        </div>
                                    </div>
                                </div>
                                <div data-v-f1c4791d="" class="place-right"><img data-v-f1c4791d=""
                                        src="./images/clean-82487515.png" alt="Close"></div>
                            </div>

                        </div>
            

                        <div class="Recharge__content-paymoney boxStyle qr_code_wrapper" id="rechargeZoneQrSection">
                            <div class="qr_code">
                                <div class="qr_upi_wrpr">
                                    <img id="generateQrCodeLink" alt="QR">
                                    <div class="upi">
                                        <div class="copy_upi">
                                            <input type="text" class="upi-text" value="<?= $upi_id; ?>">
                                            <?= $upi_id; ?> <img data-v-81acaf2c="" src="images/copy1-88343644.png"
                                                alt="Copy">
                                            <!--img data-v-81acaf2c="" onclick="onclicktocopy('<?= $upi_id; ?>')" src="images/copy1-88343644.png" alt="Copy"-->
                                        </div>
                                    </div>
                                </div>

                                <div class="recharge_input">
                                    <div class="van-cell van-field amount-input">
                                        <div class="van-cell__value van-field__value">
                                            <div class="van-field__body">
                                                <input id="toAmountFrom" type="hidden" />
                                                <input name="amount" required type="tel" inputmode="numeric"
                                                    style="text-color:#000;" id="toAmount" class="van-field__control"
                                                    placeholder="Please enter the amount">
                                            </div>
                                            <div class="van-field__body" style="margin-top:10px;">
                                                <input type="tel" maxlength="12" inputmode="numeric" id="utrNumber"
                                                    class="van-field__control" placeholder="Please enter the UTR">
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <button data-v-643fef5d="" id="sendRequestBtn" onclick="sendRequest()"
                                    class="Recharge__container-rechageBtn rechage_active">Send request</button>
                                <div data-v-643fef5d="" class="cancle_button">Back</div>
                            </div>
                        </div>


                    </div>

                    <div onclick="getDepositBtn()" id="depositBtn"
                        class="Recharge__container-rechageBtn deposite_btn rechage_active">Deposit</div>
                </div>
                <!-- USD Process -->
                <div class="Recharger__USD__Process">
                    <div class="Recharge__content">
                        <div class="Recharge__content-quickInfo boxStyle">
                            <div class="Recharge__content-quickInfo__title">
                                <div class="title">
                                    <img data-v-f1c4791d="" src="./images/Select-channel.png" alt="Select-channel">
                                    <p data-v-f1c4791d="">Select channel</p>
                                </div>
                            </div>
                            <div class="rechargeTypes_list">
                                <div class="Recharge__content-quickInfo__item item_active">
                                    <div class="other">
                                        <div data-v-f1c4791d="">7Days - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">FunPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">APay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">IcePay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">LuckyPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">GaayPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">TBPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::300 - 50K</div>
                                    </div>
                                </div>
                            </div>
                        </div>




                        <div class="Recharge__content-paymoney boxStyle rechjarge_amount"
                            id="amountSelectionSectionUSD">

                            <div class="Recharge__content-paymoney__title">
                                <img data-v-f1c4791d="" src="./images/saveWallet-ce287b90.png" alt="Deposit amount">
                                <p data-v-f1c4791d="">Deposit amount</p>
                            </div>
                            <div class="Recharge__content-paymoney__money-list">
                                <div onclick="selectAmountForDepositUSD('5')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 5
                                    </div>
                                </div>
                                <div onclick="selectAmountForDepositUSD('8')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 8
                                    </div>
                                </div>
                                <div onclick="selectAmountForDepositUSD('10')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 10
                                    </div>
                                </div>
                                <div onclick="selectAmountForDepositUSD('100')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 100
                                    </div>
                                </div>
                                <div onclick="selectAmountForDepositUSD('500')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 500
                                    </div>
                                </div>
                                <div onclick="selectAmountForDepositUSD('1000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <div class="amount">
                                        <span data-v-f1c4791d="">$</span> 1k
                                    </div>
                                </div>
                            </div>
                            <div class="Recharge__content-paymoney__money-input">
                                <div data-v-f1c4791d="" class="place-div">$</div>
                                <div class="van-cell van-field amount-input">
                                    <div class="van-cell__value van-field__value">
                                        <div class="van-field__body">
                                            <input type="tel" inputmode="numeric" id="fromAmountUSD"
                                                class="van-field__control" placeholder="Please enter the amount">
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div id="Dollar_to_INR_Container" style="display:none;margin-top:10px;">
                                <div class="Recharge__content-paymoney__money-input">
                                    <div data-v-f1c4791d="" class="place-div">₹</div>
                                    <div class="van-cell van-field amount-input">
                                        <div class="van-cell__value van-field__value">
                                            <div class="van-field__body">
                                                <input type="text" inputmode="numeric" id="fromAmountINR"
                                                    class="van-field__control" placeholder="Please enter the amount"
                                                    disabled>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                        </div>


                        <div class="Recharge__content-paymoney boxStyle qr_code_wrapper" id="rechargeZoneQrSectionUSD">
                            <div class="qr_code">
                                <div class="qr_upi_wrpr">
                                    <!-- <img id="generateQrCodeLinkUSD" alt="QR"> -->
                                    <div class="upi">
                                        <div class="copy_upi">
                                            <input type="text" class="upi-text" value="<?= $usdt; ?>">
                                            <?= $usdt; ?> <img data-v-81acaf2c="" src="images/copy1-88343644.png"
                                                alt="Copy">
                                        </div>
                                    </div>
                                </div>

                                <div class="recharge_input">
                                    <input id="toAmountFromUSD" type="hidden" />
                                    <input id="toAmountFromINR" type="hidden" />
                                    <div class="van-cell van-field amount-input">
                                        <div class="van-cell__value van-field__value">
                                            <div class="van-field__body">
                                                <div
                                                    style="position: absolute;left: 11px;font-size: 20px;font-weight: 800;">
                                                    $ </div>
                                                <input name="amount" required type="tel" inputmode="numeric"
                                                    style="text-color:#000;padding-left: 35px;" id="toAmountUSD"
                                                    class="van-field__control" placeholder="Please enter the amount">
                                            </div>
                                            <div class="van-field__body" style="margin-top:10px;">
                                                <div
                                                    style="position: absolute;left: 11px;font-size: 20px;font-weight: 800;">
                                                    ₹ </div>
                                                <input name="amount" required type="tel" inputmode="numeric"
                                                    style="text-color:#000;padding-left: 35px;" id="toAmountINR"
                                                    class="van-field__control" placeholder="Please enter the amount">
                                            </div>
                                            <div class="van-field__body" style="margin-top:10px;">
                                                <input type="tel" maxlength="12" inputmode="numeric" id="utrNumberUSD"
                                                    class="van-field__control" placeholder="Please enter the Hash Id">
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <button data-v-643fef5d="" id="sendRequestBtnUSD" onclick="sendRequestUSD()"
                                    class="Recharge__container-rechageBtn rechage_active">Send request</button>
                                <div data-v-643fef5d="" class="cancle_button">Back</div>
                            </div>
                        </div>


                    </div>

                    <div onclick="getDepositBtnUSD()" id="depositBtnUSD"
                        class="Recharge__container-rechageBtn deposite_btn rechage_active">Deposit</div>
                </div>
                
                <!--__paytm__proccess-->
                     <div class="Recharger__paytm__Process">
                    <div class="Recharge__content">
                        <div class="Recharge__content-quickInfo boxStyle">
                            <div class="Recharge__content-quickInfo__title">
                                <div class="title">
                                    <img data-v-f1c4791d="" src="./images/Select-channel.png" alt="Select-channel">
                                    <p data-v-f1c4791d="">Select channel</p>
                                </div>
                            </div>
                            <div class="rechargeTypes_list">
                                <div class="Recharge__content-quickInfo__item item_active">
                                    <div class="other">
                                        <div data-v-f1c4791d="">7Days - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">FunPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">APay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 100K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">IcePay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">LuckyPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">GaayPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::100 - 50K</div>
                                    </div>
                                </div>
                                <div class="Recharge__content-quickInfo__item">
                                    <div class="other">
                                        <div data-v-f1c4791d="">TBPay - APP</div>
                                        <div data-v-f1c4791d="">Balance::300 - 50K</div>
                                    </div>
                                </div>
                            </div>
                        </div>




                        <div class="Recharge__content-paymoney boxStyle rechjarge_amount" id="amountSelectionSectionPaytm">

                            <div class="Recharge__content-paymoney__title">
                                <img data-v-f1c4791d="" src="./images/saveWallet-ce287b90.png" alt="Deposit amount">
                                <p data-v-f1c4791d="">Deposit amount paytm</p>
                            </div>
                            <div class="Recharge__content-paymoney__money-list">
                                <div onclick="selectAmountForDepositPaytm('100')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 100
                                </div>
                                <div onclick="selectAmountForDepositPaytm('500')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 500
                                </div>
                                <div onclick="selectAmountForDepositPaytm('1000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 1K
                                </div>
                                <div onclick="selectAmountForDepositPaytm('10000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 10K
                                </div>
                                <div onclick="selectAmountForDepositPaytm('50000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 50K
                                </div>
                                <div onclick="selectAmountForDepositPaytm('100000')"
                                    class="Recharge__content-paymoney__money-list__item">
                                    <span data-v-f1c4791d="">₹</span> 100K
                                </div>
                            </div>
                            <div class="Recharge__content-paymoney__money-input">
                                <div data-v-f1c4791d="" class="place-div">₹</div>
                                <div class="van-cell van-field amount-input">
                                    <div class="van-cell__value van-field__value">
                                        <div class="van-field__body">
                                            <input type="tel" inputmode="numeric" id="fromAmountPaytm"
                                                class="van-field__control" placeholder="Please enter the amount">
                                        </div>
                                    </div>
                                </div>
                                <div data-v-f1c4791d="" class="place-right"><img data-v-f1c4791d=""
                                        src="./images/clean-82487515.png" alt="Close"></div>
                            </div>

                        </div>


                        <div class="Recharge__content-paymoney boxStyle qr_code_wrapper" id="rechargeZoneQrSection">
                            <div class="qr_code">
                                <div class="qr_upi_wrpr">
                                    <img id="generateQrCodeLink" alt="QR">
                                    <div class="upi">
                                        <div class="copy_upi">
                                            <input type="text" class="upi-text" value="<?= $upi_id; ?>">
                                            <?= $upi_id; ?> <img data-v-81acaf2c="" src="images/copy1-88343644.png"
                                                alt="Copy">
                                            <!--img data-v-81acaf2c="" onclick="onclicktocopy('<?= $upi_id; ?>')" src="images/copy1-88343644.png" alt="Copy"-->
                                        </div>
                                    </div>
                                </div>

                                <div class="recharge_input">
                                    <div class="van-cell van-field amount-input">
                                        <div class="van-cell__value van-field__value">
                                            <div class="van-field__body">
                                                <input id="toAmountFrom" type="hidden" />
                                                <input name="amount" required type="tel" inputmode="numeric"
                                                    style="text-color:#000;" id="toAmount" class="van-field__control"
                                                    placeholder="Please enter the amount">
                                            </div>
                                            <div class="van-field__body" style="margin-top:10px;">
                                                <input type="tel" maxlength="12" inputmode="numeric" id="utrNumber"
                                                    class="van-field__control" placeholder="Please enter the UTR">
                                            </div>
                                        </div>
                                    </div>
                                </div>

                                <button data-v-643fef5d="" id="sendRequestBtn" onclick="sendRequest()"
                                    class="Recharge__container-rechageBtn rechage_active">Send request</button>
                                <div data-v-643fef5d="" class="cancle_button">Back</div>
                            </div>
                        </div>


                    </div>

                    <div onclick="getDepositBtnPaytm()" id="depositBtn"
                        class="Recharge__container-rechageBtn deposite_btn rechage_active">Deposit</div>
                </div>

                <script>
                $("#Recharge__USD__container").on("click", function() {
                    $(".Recharger__INR__Process").hide();
                    $(".Recharger__USD__Process").show();
                    $(".Recharger__paytm__Process").hide();
                    
                })

                $("#Recharge__INR__container").on("click", function() {
                    $(".Recharger__INR__Process").show();
                    $(".Recharger__USD__Process").hide();
                    $(".Recharger__paytm__Process").hide();
                })
                $("#Recharge__Paytm__container").on("click", function() {
                    $(".Recharger__paytm__Process").show();
                    $(".Recharger__INR__Process").hide();
                    $(".Recharger__USD__Process").hide();
                })

                function getDepositBtn() {
                    var amount = document.getElementById('fromAmount').value;
                    if (amount == "") {
                        alert('Please Fill Amount');
                    } else {
                        if (amount >= <?= $getAdminDetails['deposit_limit']; ?>) {
                            if ("<?= $getewayStatus; ?>" == "active") {
                                window.open("pay/?am=" + amount, "_self");
                            } else {
                                document.getElementById('toAmount').value = amount;
                                document.getElementById('toAmountFrom').value = amount;
                                document.getElementById('toAmount').disabled = true;
                                document.getElementById("generateQrCodeLink").src =
                                    'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=<?= urlencode("upi://pay?pa=$upi_id&pn=$title&mc=0000&mode=02&purpose=00&am="); ?>' +
                                    amount;
                                document.getElementById("rechargeZoneQrSection").style.display = "block";
                                document.getElementById("amountSelectionSection").style.display = "none";
                                document.getElementById("depositBtn").style.display = "none";

                            }
                        } else {
                            alert('Minimum Balance : ' + <?= $getAdminDetails['deposit_limit']; ?>);
                        }
                    }
                }
                
                function getDepositBtnPaytm() {
                    var amount = document.getElementById('fromAmountPaytm').value;
                    if (amount == "") {
                        alert('Please Fill Amount');
                    } else {
                        if (amount >= <?= $getAdminDetails['deposit_limit']; ?>) {
                            if ("<?= $getewayStatus; ?>" == "daman") {
                                window.open("pay/?am=" + amount, "_self");
                            } else {
                                document.getElementById('toAmount').value = amount;
                                document.getElementById('toAmountFrom').value = amount;
                                document.getElementById('toAmount').disabled = true;
                                document.getElementById("generateQrCodeLink").src =
                                    'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=<?= urlencode("upi://pay?pa=$upi_id&pn=$title&mc=0000&mode=02&purpose=00&am="); ?>' +
                                    amount;
                                document.getElementById("rechargeZoneQrSection").style.display = "block";
                                document.getElementById("amountSelectionSection").style.display = "none";
                                document.getElementById("depositBtn").style.display = "none";

                            }
                        } else {
                            alert('Minimum Balance : ' + <?= $getAdminDetails['deposit_limit']; ?>);
                        }
                    }
                }



                function sendRequest() {
                    var amnt = document.getElementById('toAmountFrom').value;
                    var utrFrom = document.getElementById('utrNumber').value;
                    document.getElementById('sendRequestBtn').innerHTML = "Proccessing..";

                    if (amnt == "" || utrFrom == "") {
                        alert('Required Fields');
                        document.getElementById('sendRequestBtn').innerHTML = "Send request";
                    } else {
                        if (utrFrom.length < 12) {
                            alert('Invalid UTR');
                            document.getElementById('sendRequestBtn').innerHTML = "Send request";
                        } else {



                            const xhttp = new XMLHttpRequest();
                            xhttp.onload = function() {
                                var demo_show = this.responseText;
                                const myArr = JSON.parse(demo_show);
                                console.log(demo_show);
                                if (myArr.status == "success") {
                                    alert(myArr.remark);
                                    window.open('index.php', '_self');
                                } else {
                                    alert(myArr.remark);
                                    document.getElementById('sendRequestBtn').innerHTML = "Send request";
                                }
                            }
                            xhttp.open("GET", "SendRequestDepositApi.php?amnt=" + amnt + "&utr=" + utrFrom +
                                "&user=<?= $userKey; ?>");
                            xhttp.send();
                        }
                    }
                }

                //   USD Deposit
                function getDepositBtnUSD() {
                    var amount = document.getElementById('fromAmountUSD').value;
                    var amountInINR = document.getElementById('fromAmountINR').value;
                    if (amountInINR == "") {
                        alert('Please Fill Amount');
                    } else {
                        if (amountInINR >= <?= $getAdminDetails['deposit_limit']; ?>) {
                            if ("<?= $getewayStatus; ?>" == "active") {
                                window.open("pay/?am=" + amount, "_self");
                            } else {
                                toAmountINR
                                document.getElementById('toAmountUSD').value = amount;
                                document.getElementById('toAmountFromUSD').value = amount;
                                document.getElementById('toAmountFromINR').value = amountInINR;
                                document.getElementById('toAmountINR').value = amountInINR;
                                document.getElementById('toAmountUSD').disabled = true;
                                document.getElementById('toAmountINR').disabled = true;
                                // document.getElementById("generateQrCodeLinkUSD").src =
                                //     'https://api.qrserver.com/v1/create-qr-code/?size=200x200&data=<?= urlencode("upi://pay?pa=$upi_id&pn=$title&mc=0000&mode=02&purpose=00&am="); ?>' +
                                //     amountInINR;
                                document.getElementById("rechargeZoneQrSectionUSD").style.display = "block";
                                document.getElementById("amountSelectionSectionUSD").style.display = "none";
                                document.getElementById("depositBtnUSD").style.display = "none";

                            }
                        } else {
                            alert('Minimum Balance : ' + <?= $getAdminDetails['deposit_limit']; ?>);
                        }
                    }
                }


                function sendRequestUSD() {
                    var amnt = document.getElementById('toAmountFromUSD').value;
                    var utrFrom = document.getElementById('utrNumberUSD').value;
                    var amntINR = document.getElementById("toAmountFromINR").value;
                    document.getElementById('sendRequestBtnUSD').innerHTML = "Proccessing..";

                    if (amnt == "" || utrFrom == "" || amntINR == '') {
                        alert('Required Fields');
                        document.getElementById('sendRequestBtnUSD').innerHTML = "Send request";
                    } else {
                        if (utrFrom.length < 12) {
                            alert('Invalid UTR');
                            document.getElementById('sendRequestBtnUSD').innerHTML = "Send request";
                        } else {
                            //    alert("HELLOOKJBVNKJHB")

                            const xhttp = new XMLHttpRequest();
                            xhttp.onload = function() {
                                var demo_show = this.responseText;
                                const myArr = JSON.parse(demo_show);
                                console.log(demo_show);
                                if (myArr.status == "success") {
                                    alert(myArr.remark);
                                    window.open('index.php', '_self');
                                } else {
                                    alert(myArr.remark);
                                    document.getElementById('sendRequestBtnUSD').innerHTML = "Send request";
                                }
                            }
                            xhttp.open("GET", "SendRequestDepositApi2.php?amnt=" + amnt + "&amntINR=" + amntINR +
                                "&utr=" + utrFrom +
                                "&user=<?= $userKey; ?>");
                            xhttp.send();
                        }
                    }
                }
                 xhttp.open("GET", "SendRequestDepositApi.php?amnt=" + amnt + "&utr=" + utrFrom +
                                "&user=<?= $userKey; ?>");
                </script>

            </div>
        </div>

        <?php include "footer.php"; ?>
    </div>
</body>

</html>


<script>
document.getElementById('setamount').innerHTML = "20";
</script>





<script>
//////////////////----------------CLICK TO COPY-------------////////
function onclicktocopy(a) {
    navigator.clipboard.writeText(a);
    alert("Copied : " + a);
}








function selectAmountForDeposit(a) {
    document.getElementById('fromAmount').value = a;
}

function selectAmountForDepositPaytm(a) {
    document.getElementById('fromAmountPaytm').value = a;
}


function selectAmountForDepositUSD(a) {
    document.getElementById("Dollar_to_INR_Container").style.display = "block";
    document.getElementById('fromAmountUSD').value = a;
    let dollar = "<?= $dollar; ?>";
    let convertDollarInIndiaRupee = a * dollar;
    document.getElementById("fromAmountINR").value = convertDollarInIndiaRupee;

}

document.getElementById('fromAmountUSD').addEventListener('input', function() {
    const inputField = document.getElementById('fromAmountUSD');
    if (inputField.value.trim() === '') {
        document.getElementById("Dollar_to_INR_Container").style.display = "none";
    } else {
        document.getElementById("Dollar_to_INR_Container").style.display = "block";
    }
});
// $('.Recharge__container-rechageBtn').click(function(){
//     $('body').addClass('open_qr');
// });
// $('.cancle_button').click(function(){
//     $('body').removeClass('open_qr');
// });

// copyUPI
let copyUPI = document.querySelector(".copy_upi");
copyUPI.querySelector("img").addEventListener("click", function() {
    let input = copyUPI.querySelector(".upi-text");
    input.select();
    document.execCommand("copy");
    copyUPI.classList.add("active");
    window.getSelection().removeAllRanges();
    setTimeout(function() {
        copyUPI.classList.remove("active");
    }, 2500);
});
</script>