<?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;
$getAdminDetails = $dd->single($table,$condition);
$teligram = $getAdminDetails['telegram'];
$instagram = $getAdminDetails['instagram'];
$fevicon = $getAdminDetails['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><?= $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>
</head>
<body>
<div id="app">
    <div class="userInfo__container">
        <div class="userInfo__container-content">
            <div class="userInfo__container-content-wrapper">
                <div data-v-afc8f66f="" class="userInfo__container-content__avatar">
                    <img alt="Profile" src="./images/profile.png" class="userAvatar">
                </div>
                <div class="userInfo__container-content__name mail-info">
                    <div class="userInfo__container-content-nickname">
                        <h3 data-v-afc8f66f="">MEMBERNNGOTH52</h3>
                        <div data-v-afc8f66f="" class="n0"></div>
                        <img data-v-afc8f66f="" class="editPencil" src="./images/edit-profile.png" style="display: none;">
                    </div>
                    <div class="userInfo__container-content-uid ">
                        UID
                        <span data-v-afc8f66f="">|</span>
                        <span data-v-afc8f66f="" class="copy_uid mail-text" tooltip="Click to Copy" tooltip-position="bottom"><?= $getuserdetails['my_refral_id']; ?> </span>
                       
                    </div>
                    <div class="userInfo__container-content-logintime">
                        <span data-v-afc8f66f="">Join Date:&nbsp;</span>
                        <span data-v-afc8f66f=""><?= $getuserdetails['join_date']; ?></span>
                    </div>
                    <div data-v-afc8f66f="" class="userInfo__container-content-logintime" style="display: none;"><span data-v-afc8f66f="">&nbsp;</span></div>
                </div>
            </div>
            <div ></div>
        </div>
    </div>
    <div class="userinfo-content">
        <div class="totalSavings__container">
            <div class="totalSavings__container-header">
                <div class="totalSavings__container-header-box ar-1px-b">
                    <div data-v-53a73d85="" class="totalSavings__container-header__title">
                        <span data-v-53a73d85="">Total balance</span>
                    </div>
                    <div class="totalSavings__container-header__subtitle">
                        <span data-v-53a73d85="">₹<?= round($getuserdetails['wallet'],2); ?></span>
                        <img data-v-53a73d85="" src="./images/referesh-icon.png" alt="refersh">
                    </div>
                </div>
            </div>
            <div class="totalSavings__container-content">
                <div class="totalSavings__container-content-item">
                    <div data-v-53a73d85 onclick="getWalletTemp()">
                        <img data-v-53a73d85="" src="./images/wallet.png" alt="wallet">
                        <span data-v-53a73d85="">Wallet</span>
                    </div>
                </div>
                <div  onclick="getDepositTemp()" class="totalSavings__container-content-item">
                    <div data-v-53a73d85>
                        <img data-v-53a73d85="" src="./images/deposit.png" alt="wallet">
                        <span data-v-53a73d85="">Deposit</span>
                    </div>
                </div>
                <div   onclick="getWithdrawTemp()" class="totalSavings__container-content-item">
                    <div data-v-53a73d85>
                        <img data-v-53a73d85="" src="./images/Withdraw.png" alt="wallet">
                        <span data-v-53a73d85="">Withdraw</span>
                    </div>
                </div>
                <!--div class="totalSavings__container-content-item">
                    <div data-v-53a73d85>
                        <img data-v-53a73d85="" src="./images/VIP.png" alt="wallet">
                        <span data-v-53a73d85="">VIP</span>
                    </div>
                </div-->
            </div>
            
        </div>

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


    function getDepositTemp()
    {
       window.open('deposit.php','_self');
    }


    function getWithdrawTemp()
    {
        window.open('withdraw.php','_self');
    }
</script>


        <div class="financialServices__container">
            <!--div class="financialServices__container-footer">
                <div data-v-d12048f2>
                    <img data-v-d12048f2="" src="./images/vault-a933a89f.png" alt="vault">
                    <div data-v-d12048f2>
                        <div data-v-d12048f2>
                            <span data-v-d12048f2="">Safe</span>
                            <div class="financialServices__container-footer-des">
                                <h4 data-v-d12048f2="">₹0.00</h4>
                                <i data-v-d12048f2="" class="van-badge__wrapper van-icon van-icon-arrow"></i>
                            </div>
                        </div>
                        <span data-v-d12048f2="">Daily interest rate 0.1%  + VIP extra income safe, calculated every 1 minute</span>
                    </div>
                </div>
            </div-->
            <div class="financialServices__container-box">
                <div onclick="mybethistory()" data-v-d12048f2 class="financialServices-item">
                    <img data-v-d12048f2="" src="./images/My-betting-history.png" alt="My-betting-history">
                    <div class="financialServices__container-box-para">
                        <h3 data-v-d12048f2="">Bet</h3>
                        <span data-v-d12048f2="">My betting history</span>
                    </div>
                </div>
                <div onclick="gettxnMyHistory()" data-v-d12048f2 class="financialServices-item">
                    <img data-v-d12048f2="" src="./images/My-transaction-history.png" alt="My-betting-history">
                    <div class="financialServices__container-box-para">
                        <h3 data-v-d12048f2="">Transaction</h3>
                        <span data-v-d12048f2="">My transaction history</span>
                    </div>
                </div>

                <div onclick="mydepositHistory()" data-v-d12048f2 class="financialServices-item">
                    <img data-v-d12048f2="" src="./images/My-deposit-history.png" alt="My-betting-history">
                    <div class="financialServices__container-box-para">
                        <h3 data-v-d12048f2="">Deposit</h3>
                        <span data-v-d12048f2="">My deposit history</span>
                    </div>
                </div>

                <div onclick="myWithdrawHistory()" data-v-d12048f2 class="financialServices-item">
                    <img data-v-d12048f2="" src="./images/My-withdraw-history.png" alt="My-betting-history">
                    <div class="financialServices__container-box-para">
                        <h3 data-v-d12048f2="">Withdraw</h3>
                        <span data-v-d12048f2="">My withdraw history</span>
                    </div>
                </div>
            </div>
        </div>

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


function gettxnMyHistory()
{
    window.open('TransAction.php','_self');
}


function mydepositHistory()
{
    window.open('RechargeHistory.php','_self');
}


function myWithdrawHistory()
{
    window.open('WithdrawHistory.php','_self');
}
</script>



        <div class="settingPanel__container">
            <div class="settingPanel__container-items">
                <!--div class="settingPanel__container-items__item ar-1px-b">
                    <div class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/Notification.png">
                        <span data-v-e53f558e="">Notification</span>
                    </div>
                    <div class="settingPanel__container-items-right">
                        <h5 data-v-e53f558e="">4</h5>
                        <span data-v-e53f558e="" style="display: none;">English</span>
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div-->
                <div class="settingPanel__container-items__item ar-1px-b">
                    <div onclick="RedeemGift()" class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/Gifts.png">
                        <span data-v-e53f558e="">Gifts</span>
                    </div>
                    <div class="settingPanel__container-items-right">
                        <span data-v-e53f558e="" style="display: none;">English</span>
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div>
                <div class="settingPanel__container-items__item ar-1px-b" onclick="changePassword()">
                    <div  class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/password.png">
                        <span data-v-e53f558e="">Change Password</span>
                    </div>
                    <div class="settingPanel__container-items-right">
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div>
                <div class="settingPanel__container-items__item ar-1px-b" onclick="custemerSupport()">

                    <a href="<?= $teligram; ?>" style="color:#000;"><div  class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/Customer-service.png">
                        <span data-v-e53f558e="">Customer Support Online 24/7</span>
                    </div></a>
                    

                    <div class="settingPanel__container-items-right">
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div>
                <div class="settingPanel__container-items__item ar-1px-b" onclick="getinstagram()">

                    <a href="<?= $instagram; ?>" style="color:#000;"><div  class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/Customer-service.png">
                        <span data-v-e53f558e="">Customer Support Online 24/7(Instagram)</span>
                    </div></a>
                    

                    <div class="settingPanel__container-items-right">
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div>
                <div class="settingPanel__container-items__item ar-1px-b" onclick="about()">
                    <div  class="settingPanel__container-items__title">
                        <img data-v-e53f558e="" src="./images/about-icon.png">
                        <span data-v-e53f558e="">About</span>
                    </div>
                    <div class="settingPanel__container-items-right">
                        <i data-v-e53f558e="" class="van-badge__wrapper van-icon van-icon-arrow" style="color: rgb(51, 51, 51);"></i>
                    </div>
                </div>
            </div>
        </div>
        <p style="font-size: x-small;padding-bottom: 10px;"> Developed by: makaz software solutions</p>
        <div data-v-6527a5ea="" class="serviceCenter-wrap-header">
            <button data-v-6527a5ea="" onclick="getForLogout()"><img data-v-6527a5ea="" data-src="./images/logout-f985cd3f.png" src="./images/logout-f985cd3f.png" lazy="loaded"> Log out</button>
        </div>


<script>

  function changePassword()
  {
    window.open('changepassword.php','_self');
  }
  
    function about()
  {
    window.open('about.php','_self');
  }
  
    function RedeemGift()
  {
    window.open('RedeemGift.php','_self');
  }


   function custemerSupport()
   {
       window.open('<?= $teligram; ?>','_self');
   }


   function getinstagram()
   {
       window.open('<?= $instagram; ?>','_self');
   }



  function getForLogout()
  {
     var tttttt= confirm('Are you sure to LOGOUT ?');
     if(tttttt == true)
     {
         window.open('logout.php','_self');
     }
  }
</script>    



        <!-- <div class="serviceCenter-wrap">
            <div class="serviceCenter__container">
                <h1 data-v-50e93753="">Service center</h1>
                <div class="serviceCenter__container-items">
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/Settings.png">
                        <span data-v-50e93753="">Settings</span>
                    </div>
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/Feedback.png">
                        <span data-v-50e93753="">Feedback</span>
                    </div>
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/profile-Notification.png">
                        <span data-v-50e93753="">Notification</span>
                    </div>
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/Customer-service.png">
                        <span data-v-50e93753="">24/7 Customer service</span>
                    </div>
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/Beginner-Guide.png">
                        <span data-v-50e93753="">Beginner's Guide</span>
                    </div>
                    <div class="serviceCenter__container-items__item">
                        <img data-v-50e93753="" class="" data-origin="./images/Settings.png" src="./images/About-us.png">
                        <span data-v-50e93753="">About us</span>
                    </div>
                    
                </div>
            </div>
            <div class="serviceCenter-wrap-header">
                <button class="logout-button">
                    <img src="./images/logout.png" alt="Logout"> Log out
                </button>
            </div>
        </div> -->

    </div>
 <?php include "footer.php"; ?>
</div>
</body>
<script>
const copyMailId = document.querySelectorAll('.mail-text');

copyMailId.forEach(copyText => {
    copyText.addEventListener('click', () => {
        const selection = window.getSelection();
        const range = document.createRange();
        range.selectNodeContents(copyText);
        selection.removeAllRanges();
        selection.addRange(range);

        try {
            document.execCommand('copy');
            selection.removeAllRanges();

            const mailId = copyText.textContent;
            copyText.textContent = 'Copied!';
            copyText.classList.add('success');

            setTimeout(() => {
                copyText.textContent = mailId;
                copyText.classList.remove('success');
            }, 1000);
        } catch (e) {
            copyText.textContent = 'Couldn\'t copy, hit Ctrl+C!';
            copyText.classList.add('error');

            setTimeout(() => {
                errorMsg.classList.remove('show');
            }, 1200);
        }
    });
});
</script>
</html>