{include file="header.tpl"}


<div class="col-md-10 mml fix-mt d-none d-sm-block" style="font-family: 'source sans pro'; min-width: 83%; padding-bottom: 60px;">

    <!--  -->
    
      <!--  -->

        <div class="row px-4">
            <div class="col-3">
                <div class="post-box px-4 py-3">
                    <h3>
                        <small class="xsmall">Total Balance</small><br>
                        {$currency_sign}{$ab_formated.total}
                    </h3>
                </div>
            </div>
            <div class="col-3">
                <div class="post-box dark-bg px-4 py-3">
                    <h3 class="whiteText">
                        <small class="xsmall whiteText">Total Deposit</small><br>
                        {$currency_sign}{$ab_formated.deposit}
                    </h3>
                </div>
            </div>
            <div class="col-3">
                <div class="post-box px-4 py-3">
                    <h3>
                        <small class="xsmall">Total Earnings</small><br>
                        {$currency_sign}{$ab_formated.earning}
                    </h3>
                </div>
            </div>
            <div class="col-3">
                <div class="post-box dark-bg px-4 py-3">
                    <h3 class="whiteText">
                        <small class="xsmall whiteText">Total Withdrawal</small><br>
                        {$currency_sign}{$ab_formated.withdrawal}
                    </h3>
                </div>
            </div>
        </div>
        <div class="row px-4 my-4">
            <div class="col-12">
                <div>
                    <small>Coin Rates</small>
                </div>
                <div>
                            <!-- TradingView Widget BEGIN -->
        <div class="tradingview-widget-container d-none d-sm-block">
            <div class="tradingview-widget-container__widget"></div>
            <div class="tradingview-widget-copyright"></div>
            <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-tickers.js" async>
            {
            "symbols": [
              {
                "description": "",
                "proName": "BINANCEUS:BTCUSDT"
              },
              {
                "description": "",
                "proName": "BINANCEUS:ETHUSDT"
              },
              {
                "description": "",
                "proName": "BINANCE:LTCUSDT"
              },
              {
                "description": "",
                "proName": "BINANCE:TRXUSDT"
              },
              {
                "description": "",
                "proName": "BINANCE:XRPUSDT"
              },
              {
                "description": "",
                "proName": "BINANCE:ADAUSDT"
              },
              {
                "description": "",
                "proName": "BINANCE:BCHUSDT"
              }
            ],
            "colorTheme": "light",
            "isTransparent": true,
            "showSymbolLogo": true,
            "largeChartUrl": "https://coinbankinvestment.com",
            "locale": "en"
          }
            </script>
          </div>
          
          <!-- TradingView Widget END -->
                </div>
            </div>
        </div>
        <div class="row px-4 mt-4">
            <div class="col-6">
                <div class="post-box style-scrollbar" style="height: 330px; overflow-y: scroll; overflow-x: hidden;">
                    <div class="row py-2 px-4">
                        <div class="col-8">
                            <h5 class="bold-text">
                                My Investments
                            </h5>
                        </div>
                        <div class="col-4 align-right">
                            <small class="xsmall2 bold-text">
                                Open &nbsp;
                                <i class="fi fi-rr-arrow-right fixIcon"></i>
                            </small>
                        </div>
                    </div>
                    <div class="mt-4 px-2">
                        
                            <div class="align-center mt-3 py-50">
                                <div>
                                    <img src="static/images/no-file.png" alt="no-project" style="width: 70px; height: 50px;">
                                </div>
                                <h5 class="xsmall greyBlack">
                                    No Investments found
                                </h5>
                                <div class="mt-4">
                                    <a href="?a=invest">
                                        <button class="Btn py-2 blackText px-50" style="width: fit-content;">
                                            Start Trading &nbsp; <i class="fi fi-rr-arrow-right fixIcon2"></i>
                                        </button>
                                    </a>
                                </div>
                            </div>
                        
                        
                    </div>
                </div>
            </div>

            <!-- ***** -->

            <div class="col-6">
                <div class="post-box">
                    <div class="row py-2 px-4">
                        <div class="col-8">
                            <h5 class="bold-text">
                                Recent Transactions
                            </h5>
                        </div>
                        <div class="col-4 align-right">
                            <small class="xsmall2 bold-text">
                                See All &nbsp;
                                <i class="fi fi-rr-arrow-right fixIcon"></i>
                            </small>
                        </div>
                    </div>
                      
                        <h5 class="reduceH5 greyWhite2 align-center py-50">
                            <i class="fi fi-rr-search-alt" style="font-size: 34px;"></i><br>
                            No record found
                        </h5>
                    
                </div>
            </div>
        </div>
    </div>
    <!-- ## -->
    
    <div class="col-12 d-block d-sm-none" style="padding:0px; padding-bottom: 60px; font-family: 'roboto';">

    <div class="floating-div-wrapper d-block d-sm-none">
        <div class="floating-div-wrapper-overlay">
            <div class="p-4">
                <h3 class="whiteText">
                    <small class="d-block m-0 greyWhite">Hello {$userinfo.username}</small>
                    <small class="xsmall greyWhite">Your Balance</small><br>
                    {$currency_sign}{$ab_formated.total}
                </h3>
            </div>
        </div>
    </div>
    
    <div class="post-box float-div p-4 mx-3" style="margin-top: -50px;">
        <div class="row">
            <div class="col-6 border-right">
                <div class="row">
                    <div class="col-2 mt-2">
                        <i class="fi fi-rr-arrow-down green-text fixIcon"></i>
                    </div>
                    <div class="col-8">
                        <h5>
                            {$currency_sign}<b>{$ab_formated.earning}</b> <br>
                            <small class="xsmall">Earnings</small>
                        </h5>
                    </div>
                </div>
            </div>
            <div class="col-6">
                <div class="row">
                    <div class="col-2 mt-2">
                        <i class="fa fa-pie-chart gold-text fixIcon"></i>
                    </div>
                    <div class="col-8">
                        <h5>
                            <b>{$currency_sign}{$ab_formated.active_deposit}</b> <br>
                            <small class="xsmall">Active Deposit</small>
                        </h5>
                    </div>
                </div>
            </div>
        </div>
        <div class="container border-top pt-3 mt-3">
            <div class="mb-4 mt-2 row px-2">
                <div class="col-4 px-1">
                    <a href="?a=invest">
                        <button class="Btn green-bg py-2 xxsmall" style="border: 1px solid #2ebd85;">
                            Start Trading
                        </button>
                    </a>
                </div>
                <div class="col-4 px-1">
                    <a href="?a=deposit">
                        <button class="btn-outline my-border py-2 xxsmall">
                            Add Fund &nbsp; <i class="fi fi-rr-arrow-small-down fixIcon"></i>
                        </button>
                    </a>
                </div>
                <div class="col-4 px-1">
                    <a href="?a=withdraw">
                        <button class="btn-outline my-border py-2 xxsmall">
                            Withdraw &nbsp; <i class="fi fi-rr-dollar fixIcon"></i>
                        </button>
                    </a>
                </div>
            </div>
        </div>
    </div>



    <div class="curve-top py-4 white-bg mt-2" style="position: relative; z-index: 1; margin-top: -20px;">
        <div class="col-12">
    <div class="row mb-3 mt-2">
        <div class="col-6">
            <small class="xsmall site-black bold-text">Coin Rates</small>
        </div>
        <div class="col-6 align-right">
            <a href="#">
                <small class="xsmall bold-text site-black">View Market &nbsp;<i class="fa fa-caret-right"></i></small>
            </a>
        </div>
    </div>
</div>

<div class="scrollmenu pl-2 pr-4 py-2" style="width: 100vw;">
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/btc_icon.png" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>BTC/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Bitcoin Price
                </small> <br>
                $ <span id="btcPrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>
    <!-- ETH -->
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/eth_icon.png" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>ETH/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Ethereum Price
                </small> <br>
                $ <span id="ethPrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>
    <!-- BNB -->
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/bnb_icon.png" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>BNB/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Bnb Price
                </small> <br>
                $ <span id="bnbPrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>
    <!-- solana -->
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/solana_icon.png" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>SOL/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Solana Price
                </small> <br>
                $ <span id="solPrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>

    <!-- cardano -->
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/cardano_icon.png" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>ADA/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Cardano Price
                </small> <br>
                $ <span id="adaPrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>

    <!-- doge -->
    <div class="s-m-item">
        <div class="post-box" style="width: 150px;">
            <div>
                <img src="static/images/doge_icon.jpg" alt="btc" style="width: 20px; height: 20px;">&nbsp;&nbsp;
                <small>DOGE/USD</small>
            </div> 
            <h5 class="reduceH5 mt-2">
                <small class="xsmall">
                    <i class="fa fa-caret-right"></i> Dogecoin Price
                </small> <br>
                $ <span id="dogePrice" class="textColor">---</span>
            </h5>  
        </div>
    </div>
</div>



<script src="static/vendor/jquery/jquery.js"></script>

{literal}
<script>
    var coinListApiSettings = {
        'async': true,
        'scrossDomain': true,
        'url': 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin%2Cethereum%2Cbinancecoin%2Cdogecoin%2Ccardano%2Csolana&vs_currencies=usd',
        'method':'GET',
        'headers': {}
    }

    const getCoinPrice = ()=>{
        $.ajax(coinListApiSettings).done(
            function(res){
                $('#btcPrice').html((res.bitcoin.usd).toLocaleString())
                $('#ethPrice').html((res.ethereum.usd).toLocaleString())
                $('#bnbPrice').html((res.binancecoin.usd).toLocaleString())
                $('#adaPrice').html((res.cardano.usd).toLocaleString())
                $('#solPrice').html((res.solana.usd).toLocaleString())
                $('#dogePrice').html((res.dogecoin.usd).toLocaleString())
            }
        );
    }
    setTimeout(getCoinPrice, 2000)

</script>
{/literal}

    </div>


    <div class="mb-2">
        <div class="col-12">
            <small class="xsmall bold-text">MY INVESTMENTS</small> <br>
            
        </div>
    </div>
    <div class="mt-4 px-2">
        
            <div class="align-center mt-3 py-50">
                <div>
                    <img src="static/images/no-file.png" alt="no-project" style="width: 70px; height: 50px;">
                </div>
                <h5 class="xsmall greyBlack">
                    No Investments found
                </h5>
                <div class="mt-4">
                    <a href="?a=invest">
                        <button class="Btn py-2 blackText px-50" style="width: fit-content;">
                            Start Trading &nbsp; <i class="fi fi-rr-arrow-right fixIcon2"></i>
                        </button>
                    </a>
                </div>
            </div>
        
        
    </div>
    <!-- ## Widget -->
    
    <!-- ### -->
    <div class="mt-4 border-top p-4">
        <div class="row">
            <div class="col-8">
                <h5 class="reduceH5 greyBlack">
                    Recent Transactions
                </h5>
            </div>
            <div class="col-4 align-right">
                <small class="xsmall bold-text">
                    See All &nbsp;
                    <i class="fi fi-rr-arrow-right fixIcon"></i>
                </small>
            </div>
        </div>
        <div class="pb-4">
              
                <h5 class="reduceH5 greyWhite2 align-center py-50">
                    <i class="fi fi-rr-search-alt" style="font-size: 34px;"></i><br>
                    No record found
                </h5>
            
        </div>
    </div>
</div>


{include file="footer.tpl"}