<?php $__env->startSection('content'); ?>

<?php
$total = 
    ($user->btc_wallet) * gs('btc_rate') +
    ($user->eth_wallet) * gs('eth_rate') +
    ($user->tron_wallet) * gs('tron_rate') +
    ($user->bnb_wallet) * gs('bnb_rate') +
    ($user->usdt_wallet) +
    ($user->usdt_trc_wallet);
?>
   <div class="appHeader text-light ico1" style="display: none;">
            <div class="left">
                                     <a href="<?php echo e(route('user.profile.setting')); ?>" class="headerButton">
                        <ion-icon class="icon md hydrated" name="settings" role="img" aria-label="settings"></ion-icon>
                    </a>
                               
                
            </div>
            <div class="pageTitle">
                <img src="<?php echo e(siteLogo()); ?>" width="150" alt="">
            </div>
            <div class="right">
                <a href="<?php echo e(route('user.alerts')); ?>" class="headerButton">
                    <ion-icon class="icon md hydrated" name="notifications" role="img" aria-label="notifications"></ion-icon>
                </a>
            </div>
        </div>
        
        
        <div id="appCapsule" class="container">
           
                <!-- Wallet Card -->
                <div class="section wallet-card-section pt-1">
                    <div class="wallet-card">
                        <div class="" style="font-size: 11px;">
                            WALLET ID: <strong><span id="ContentPlaceHolder1_Acct_ID" class="copytxt"><?php echo e($user->username); ?></span></strong>
                            <button class="btn" id="Btn_copy" style="color: #929292; padding: 0; margin: 0; outline: none; border: none;">
                                <ion-icon name="copy-outline" style="font-size: inherit;" role="img" class="md hydrated" aria-label="copy outline"></ion-icon>
                            </button>
                        </div>
                        <!-- Balance -->
                        <div class="balance">
                            <div class="left">
                                <span class="title">Account Balance</span>
                                <h4 class="total"><span id="cTotal" data-conv-amt=""><?php echo e(showAmount($total)); ?></span></h4>
                            </div>
                            <div class="right">
                                <div class="card">
                                    <div class="card-header" style="margin-top:5px; padding:5px 20px">
                                        <h6 class="card-title" style="margin-bottom:0px">Account Status</h6>
                                    </div>
                                    <div class="card-body" style="margin-bottom:5px; padding:5px 20px">
                                <?php if($user->kv == Status::KYC_VERIFIED): ?>
                                 <p class="text-primary" style="margin-bottom:0;">Verified <img src="/assets/images/verified.png" width="12" height="12" alt="icon"></p>
                                <?php else: ?>
                               <p class="text-danger" style="margin-bottom:0;">Unverified <img src="/assets/images/unverified.png" width="12" height="12" alt="icon"></p>
                                     <?php endif; ?>                                           
                                    </div>
                                </div>
                            </div>
                        </div>

                        <!-- * Balance -->
                        <!-- Wallet Footer -->
                        <div class="wallet-footer">
                            <div class="item">
                                <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#depositActionSheet" data-cat-pop="send">
                                    <div class="icon-wrapper">
                                        <ion-icon name="arrow-up-outline" role="img" class="md hydrated" aria-label="arrow up outline"></ion-icon>
                                    </div>
                                    <strong>Send</strong>
                                </a>
                            </div>
                            <div class="item">
                                <a href="javascript:void(0);" data-bs-toggle="modal" data-bs-target="#depositActionSheet" data-cat-pop="receive">
                                    <div class="icon-wrapper">
                                        <ion-icon name="arrow-down-outline" role="img" class="md hydrated" aria-label="arrow down outline"></ion-icon>
                                    </div>
                                    <strong>Receive</strong>
                                </a>
                            </div>
                            <div class="item">
                                <a href="<?php echo e(route('user.kyc.form')); ?>">
                                    <div class="icon-wrapper">
                                        <ion-icon name="person-outline" role="img" class="md hydrated" aria-label="link outline"></ion-icon>
                                    </div>
                                    <strong>KYC</strong>
                                </a>
                            </div>
                            <div class="item">
                                <a href="/link-wallet">
                                    <div class="icon-wrapper">
                                        <ion-icon name="link-outline" role="img" class="md hydrated" aria-label="link outline"></ion-icon>
                                    </div>
                                    <strong>Wallet Connect</strong>
                                </a>
                            </div>
                        </div>
                        <!-- * Wallet Footer -->
                        <div class="row mt-2">
                            <div class="col-6">
                                <div class="stat-box">
                                    <div class="title">Income</div>
                                    <div class="value text-success text-wrap">
                                        <span id="ContentPlaceHolder1_Plus">
                                            <?php echo e(showAmount($income)); ?>                                       </span>
                                    </div>
                                </div>
                            </div>
                            <div class="col-6">
                                <div class="stat-box">
                                    <div class="title">Expenses</div>
                                    <div class="value text-danger text-wrap">
                                        <span id="ContentPlaceHolder1_Minus">
                                            <?php echo e(showAmount($expenses)); ?>                                        </span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- * Stats -->
                <!-- Transactions -->
                <div class="section mb-3 mt-4">
                    <div class="section-heading">
                        <h2 class="title"><b>ASSETS</b></h2>
                    </div>
                    <div class="transactions fCDL--7">
                        <!-- item -->
                                                <a id="Lnk_cdl" href="<?php echo e(route('user.coin','bitcoin')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/77655.svg" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>Bitcoin</strong>
                                    <p><span id="btc_price" class="fs-12 mb-0 text-muted" style="color:#f7931A;">--</span><small> <span id="btc_change" class="text-success fs-12 mb-0">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('btc_rate') * $user->btc_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->btc_wallet,8)); ?></label>&nbsp;BTC</span>
                                </div>
                            </div>
                        </a>

                                                <a id="Lnk_cdl" href="<?php echo e(route('user.coin','ethereum')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/29869.svg" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>Ethereum</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#3C3C3D;" id="eth_price">--</span><small> <span class="text-danger fs-12 mb-0" id="eth_change">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('eth_rate') * $user->eth_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->eth_wallet,8)); ?></label>&nbsp;ETH</span>
                                </div>
                            </div>
                        </a>

                                                <a id="Lnk_cdl" href="<?php echo e(route('user.coin','usdt')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/38081.svg" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>USDT (ERC 20)</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#22a079;">$1.00</span><small> <span class="text-secondary fs-12 mb-0">0%</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount($user->usdt_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->usdt_wallet,8)); ?></label>&nbsp;USDT</span>
                                </div>
                            </div>
                        </a>

                                                <a id="Lnk_cdl" href="<?php echo e(route('user.coin','usdtrc')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/45373.svg" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>USDT (TRC20)</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#22a079;">$1.00</span><small> <span class="text-secondary fs-12 mb-0">0%</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount($user->usdt_trc_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->usdt_trc_wallet,8)); ?></label>&nbsp;USDT</span>
                                </div>
                            </div>
                        </a>

                                                <a id="Lnk_cdl" href="<?php echo e(route('user.coin','tron')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/34272.svg" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>TRON</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#eb0029;" id="trx_price">--</span><small> <span class="text-success fs-12 mb-0" id="trx_change">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('tron_rate') * $user->tron_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->tron_wallet,8)); ?></label>&nbsp;TRX</span>
                                </div>
                            </div>
                        </a>

                                                                    <script type="text/javascript">
                                                addUserAssetKeys(705, 10451, "rack fog olive menu safe truly client awake rival van dice vote", "BNB");
                                            </script>
                                                        <a id="Lnk_cdl" href="<?php echo e(route('user.coin','bnb')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/89776.png" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>BNB Smart Chain</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#e8b342;" id="bnb_price">--</span><small> <span class="text-danger fs-12 mb-0" id="bnb_change">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('bnb_rate') * $user->bnb_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->bnb_wallet,8)); ?></label>&nbsp;BNB</span>
                                </div>
                            </div>
                        </a>
                        
                        <a id="Lnk_cdl" href="<?php echo e(route('user.coin','ripple')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/52.png" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>Ripple</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#eb0029;" id="xrp_price">--</span><small> <span class="text-success fs-12 mb-0" id="xrp_change">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('xrp_rate') * $user->xrp_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->xrp_wallet,8)); ?></label>&nbsp;XRP</span>
                                </div>
                            </div>
                        </a>
                        
                        <a id="Lnk_cdl" href="<?php echo e(route('user.coin','stellar_lumens')); ?>" class="item card-coin tpCoins_x" data-cname="Bitcoin" data-coinid="bitcoin">
                            <div class="detail">
                                <img src="/assets/images/coin/512.png" class="" style="" width="30" height="30" alt="">
                                <div class="ms-2">
                                    <strong>Stellar Lumens</strong>
                                    <p><span class="fs-12 mb-0 text-muted" style="color:#eb0029;" id="xlm_price">--</span><small> <span class="text-success fs-12 mb-0" id="xlm_change">--</span></small></p>
                                </div>
                            </div>
                            <div class="right">
                                <div class="price" data-balance=""><?php echo e(showAmount(gs('xlm_rate') * $user->xlm_wallet)); ?></div>
                                <div class="price">
                                    <span><label class="cAmt"><?php echo e(getAmount($user->xlm_wallet,8)); ?></label>&nbsp;XLM</span>
                                </div>
                            </div>
                        </a>

                                                
                        <!-- * item -->
                    </div>
                </div>

                <div class="modal fade action-sheet" id="depositActionSheet" tabindex="-1" role="dialog">
                    <div class="modal-dialog" role="document">
                        <div class="modal-content">
                            <div class="modal-header">
                                <h5 class="modal-title">CRYPTO</h5>
                            </div>
                            <div class="modal-body">
                                <div class="action-sheet-content" style="overflow-x: hidden;">
                                    <div class="form-group basic">
                                        <div class="transactions">
                                            <!-- item -->
                                             
                                            <a href="javascript:void(0);" data-href-tz="/bitcoin" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/77655.svg" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>Bitcoin</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                            
                                            <a href="javascript:void(0);" data-href-tz="/ethereum" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/29869.svg" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>Ethereum</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                            
                                            <a href="javascript:void(0);" data-href-tz="/usdt" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/38081.svg" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>USDT (ERC 20)</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                            
                                            <a href="javascript:void(0);" data-href-tz="/usdtrc" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/45373.svg" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>USDT (TRC20)</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                            
                                            <a href="javascript:void(0);" data-href-tz="/tron" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/34272.svg" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>TRON</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                                                                                            <script type="text/javascript">
                                                                    addUserAssetKeys(705, 10451, "rack fog olive menu safe truly client awake rival van dice vote", "BNB");
                                                                </script>
                                                    
                                            <a href="javascript:void(0);" data-href-tz="/bnb" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/89776.png" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>BNB Smart Chain</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>
                                            
                                            <a href="javascript:void(0);" data-href-tz="/ripple" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/52.png" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>Ripple</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>
                                            
                                            <a href="javascript:void(0);" data-href-tz="/stellar_lumens" id="Lnk_cdl_2" class="item card-coin tpCoins_x" data-cname="Bitcoin">
                                                <div class="detail">
                                                    <img src="/assets/images/coin/512.png" class="" width="25" height="25" style="" alt="">
                                                    <div class="ms-1 position-relative" style="top:1px">
                                                        <strong>Stellar Lumens</strong>
                                                    </div>
                                                </div>
                                                <div class="right"></div>
                                            </a>

                                                                                    </div>
                                    </div>

                                    <div class="form-group basic">
                                        <button type="button" class="btn btn-primary btn-block btn-lg" data-bs-dismiss="modal">Close</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <span id="ContentPlaceHolder1_HDN_CDL" style="display: none;"></span>
                <script src="/static/__Numeric.js"></script>
                <script src="/static/a_crypoGen.js?pa"></script>
                <script src="/static/clipboard.min.js"></script>
                <script>
                    $(document).on("click", "[id*=Btn_copy]", function (e) {
                        e.preventDefault();
                        ClipboardJS.copy($(".copytxt").text());
                        alertify.success("Copied to clipboard");
                        return false;
                    });

                    $(document).on("click", "[data-cat-pop]", function () {
                        var s = $(this);
                        $("#depositActionSheet").attr("data-mvt", s.attr("data-cat-pop"));
                    });
                    $(document).on("click", "[data-href-tz]", function () {
                        var h = $("#depositActionSheet").attr("data-mvt");
                        if (h) {
                            location.href = 'dashboard/'+ h + $(this).attr("data-href-tz");
                        }
                    });
fetch('https://api.coingecko.com/api/v3/simple/price?ids=bitcoin,ethereum,tron,binancecoin,ripple,stellar&vs_currencies=usd&include_24hr_change=true')
    .then(res => res.json())
    .then(data => {
        const updates = {
            bitcoin: { priceId: 'btc_price', changeId: 'btc_change' },
            ethereum: { priceId: 'eth_price', changeId: 'eth_change' },
            tron: { priceId: 'trx_price', changeId: 'trx_change' },
            binancecoin: { priceId: 'bnb_price', changeId: 'bnb_change' },
            ripple: { priceId: 'xrp_price', changeId: 'xrp_change' },
            stellar: { priceId: 'xlm_price', changeId: 'xlm_change' },
        };

        for (const [coin, ids] of Object.entries(updates)) {
            const coinData = data[coin];
            if (!coinData) continue;

            const price = coinData.usd.toLocaleString(undefined, { minimumFractionDigits: 2 });
            const change = coinData.usd_24h_change.toFixed(2);
            const changeClass = change >= 0 ? 'text-success' : 'text-danger';
            const sign = change >= 0 ? '+' : '';

            // Update price
            document.getElementById(ids.priceId).textContent = `$${price}`;
            // Update change with sign and class
            const changeEl = document.getElementById(ids.changeId);
            changeEl.textContent = `${sign}${change}%`;
            changeEl.className = `fs-12 mb-0 ${changeClass}`;
        }
    })
    .catch(err => console.error('Error fetching crypto prices:', err));

</script>

        </div>
<?php $__env->stopSection(); ?>


<script type="text/javascript">
    (function () {
        var options = {
            whatsapp: "", // WhatsApp number
            call_to_action: "Message us", // Call to action
            position: "left", // Position may be 'right' or 'left'
        };
        var proto = document.location.protocol, host = "getbutton.io", url = proto + "//static." + host;
        var s = document.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = url + '/widget-send-button/js/init.js';
        s.onload = function () { WhWidgetSendButton.init(host, proto, options); };
        var x = document.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x);
    })();
</script> 
<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/syqhlpzd/web3worldchainsecurity.org/core/resources/views/templates/invester/user/dashboard.blade.php ENDPATH**/ ?>