<?php $__env->startSection('content'); ?>
            <div class="welcome" style="padding-bottom: 10px;">
                <div class="row">
                    <div class="col-md-9">
                        <div class="" style="display: flex;align-items:center;">
                            <img src="<?php echo e(asset('assets/neuro/user/images/profile.png')); ?>" class="">
                            <span class="ml-4" style="color: #FFFFFF; font-family: 'Roboto', sans-serif; font-size: 15px; color: #F4F4F4; font-weight: 400;"><b style="font-size: 20px; font-weight: 700;">Welcome back, <b style="text-transform: capitalize;"> <?php echo e($user->username); ?> </b></b><br/>
                    
                        </div>
                    </div>
                    <div class="col-md-3">
                        <div style="padding-top: 10px">
                            <span style="color: #F4F4F4;">Total value of portfolio</span>
                            <span style=""><b style="font-size: 40px; font-weight: 700; color: #FFFFFF"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($user->deposit_wallet + $user->portfolio_value)); ?></b></span>
                            <span style=""><b id="btcval" style="font-size: 22px; font-weight: 700; color: #FFFFFF"></b></span>
                            <script>
                                var url = "https://blockchain.info/tobtc?currency=USD&value="; 
                                var value_db = "<?php echo e($user->deposit_wallet); ?>";
                                var value = value_db.replace(/,/g, "");
                                var url2 = url + value;
                                $.get(url2, function(data){
                                    var returnText = data + ' BTC';
                                    $('#btcval').text(returnText);
                                });
                            </script>
                        </div>
                    </div>
                </div>
            </div>
            <div class="balance-holder">
                <h4>Portfolio overview</h4>
                <div class="row">
                    <div class="col-md-3 balance">
                        <div class="item p-4 ">
                            <div class="" style="display: flex;align-items:center;">
                                <img src="<?php echo e(asset('assets/neuro/user/images/investment.png')); ?>" class="img-fluid" width="60px;">
                                <span class="ml-4 text-uppercase" style="color: #808080; font-weight: 700; font-size: 14px;"> Invested capital</b><br/>
                                <b style="font-family: 'Roboto', sans-serif; font-size: 30px; color: #101010;"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($invests + $user->invested_capital)); ?></b></span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 balance">
                        <div class="item p-4 ">
                            <div class="" style="display: flex;align-items:center;">
                                <img src="<?php echo e(asset('assets/neuro/user/images/bar-chart.png')); ?>" class="img-fluid" width="60px;">
                                <span class="ml-4 text-uppercase" style="color: #808080; font-weight: 700; font-size: 14px;"> Total Profits</b><br/>
                                <b style="font-family: 'Roboto', sans-serif; font-size: 30px; color: #101010;"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($interests + $user->total_profits )); ?></b></span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 balance">
                        <div class="item p-4 ">
                            <div class="" style="display: flex;align-items:center;">
                                <img src="<?php echo e(asset('assets/neuro/user/images/wallet.png')); ?>" class="img-fluid" width="60px;">
                                <span class="ml-4 text-uppercase" style="color: #808080; font-weight: 700; font-size: 14px;"> Available Balance</b><br/>
                                <b style="font-family: 'Roboto', sans-serif; font-size: 30px; color: #101010;"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($user->deposit_wallet + $user->portfolio_value)); ?></b></span>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-3 balance">
                        <div class="item p-4 ">
                            <div class="" style="display: flex;align-items:center;">
                                <img src="<?php echo e(asset('assets/neuro/user/images/investment.png')); ?>" class="img-fluid" width="60px;">
                                <span class="ml-4 text-uppercase" style="color: #808080; font-weight: 700; font-size: 14px;"> Total Withdrawal</b><br/>
                                <b style="font-family: 'Roboto', sans-serif; font-size: 30px; color: #101010;"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($totalWithdraw)); ?></b></span>
                            </div>
                        </div>
                    </div>
                </div>
                <h4 style="padding-bottom: 0px; margin-bottom: 0px;">Current Plan</h4>
                <div class="row">
                    <div class="col-md-12 balance" style="overflow-x: scroll;">
                        <table class="table table-light table-striped table-hover">
                            <thead>
                                <tr>
                                    <th>Plan name</th>
                                    <th>ROI</th>
                                    <th>Capital</th>
                                    <th>Profits due</th>
                                    <th>Status</th>
                                    <th>Start date</th>
                                    <th>Due date</th>
                                </tr>
                            </thead>
                            <tbody>
                        <?php $__currentLoopData = $investments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $invest): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
        if($invest->last_time){
        $start = $invest->last_time;
        }else{
        $start = $invest->created_at;
        }
    ?>
                                <tr>
                                <td><?php echo e(__($invest->plan->name)); ?> </td>
                                <td><?php echo e($invest->plan->interest_type != 1 ? $general->cur_sym : ''); ?><?php echo e(showAmount($invest->plan->interest)); ?><?php echo e(($invest->plan->interest_type == 1) ? '%': ''); ?></td>
                                <td><?php echo e($general->cur_sym); ?> <?php echo e(showAmount($invest->amount )); ?></td>
                                <td><?php echo e($general->cur_sym); ?><?php echo e(showAmount($invest->interest)); ?> x <?php echo e($invest->return_rec_time); ?> = <?php echo e(showAmount($invest->paid)); ?> <?php echo e($general->cur_text); ?></td>                               
                                <td>
                                    <?php if($invest->status == 1): ?>
                                    <span class="badge badge-warning">Running</span>
                                    <?php elseif($invest->status == 2): ?>
                                    <span class="badge badge-success">Complete</span>
                                    <?php elseif($invest->status == 3): ?>
                                    <span class="badge badge-info">Reversed</span>
                                    <?php elseif($invest->status == 0): ?>
                                    <span class="badge badge-success">Complete</span>
                                    <?php else: ?>
                                    <span class="badge badge-success">Complete</span>
                                    <?php endif; ?>
                                </td>
                                <td><?php echo e(showDateTime($invest->created_at, 'M d, Y h:i A')); ?></td>
                                <td><?php echo e(showDateTime($invest->next_time, 'M d, Y h:i A')); ?></td>
                                
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                    </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <h4 class="title" style="margin-left: 25px;">Affilliate Program</h4>
            <div class="refer">
                <div class="row">
                    <div class="col-md-3">
                        <img src="<?php echo e(asset('assets/neuro/user/images/gift-box.png')); ?>" class="img-fluid mx-auto d-block" width="150px;">
                    </div>
                    <div class="col-md-9 pt-3">
                        <h4>Earn cash points as you refer your friends and family!</h4>
                        <p>Copy the link below and share, points will be added to your  card.</p>
                        <div class="input-group mb-3">
                            <div class="input-group-prepend">
                                <button class="btn" style="background: #FFFFFF; color: #5E3475; border: 0 px solid transparent; border-right: none;" type="button"><i class="uil uil-link" style="font-size: 20px;"></i></button>
                            </div>
                            <input type="text" id="copyTarget" class="form-control" value="<?php echo e(route('home')); ?>?reference=<?php echo e(auth()->user()->username); ?>">
                            <div class="input-group-append">
                                <button class="btn" style="padding-right: 7px;" id="copyButton"><i class="uil uil-copy" style="padding: 5px 5px; font-size: 20px; border-radius: 10px; background: linear-gradient(to right, #ee0979, #ff6a00);"></i></button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <h4 class="title" style="margin-left: 25px;">Top cryptocurrencies today</h4>
            <div class="long-chart p-4">
                <!-- TradingView Widget BEGIN -->
                        <div class="tradingview-widget-container">
                        <div id="tradingview_8564d"></div>
                        <script type="text/javascript" src="https://s3.tradingview.com/tv.js"></script>
                        <script type="text/javascript">
                        new TradingView.MediumWidget(
                        {
                        "symbols": [
                            [
                            "Bitcoin",
                            "BINANCE:BTCUSDT|1D"
                            ],
                            [
                            "Ethereum",
                            "BINANCE:ETHUSDT|1D"
                            ],
                            [
                            "Shiba",
                            "BINANCE:SHIBUSDT|1D"
                            ],
                            [
                            "Apple",
                            "NASDAQ:AAPL|1D"
                            ],
                            [
                            "Tesla",
                            "NASDAQ:TSLA|1D"
                            ],
                            [
                            "Microsoft",
                            "NASDAQ:MSFT|1D"
                            ]
                        ],
                        "chartOnly": false,
                        "width": "100%",
                        "height": "100%",
                        "locale": "en",
                        "colorTheme": "light",
                        "isTransparent": true,
                        "autosize": true,
                        "showVolume": false,
                        "hideDateRanges": false,
                        "scalePosition": "right",
                        "scaleMode": "Normal",
                        "fontFamily": "-apple-system, BlinkMacSystemFont, Trebuchet MS, Roboto, Ubuntu, sans-serif",
                        "noTimeScale": false,
                        "valuesTracking": "1",
                        "chartType": "line",
                        "fontColor": "#787b86",
                        "gridLineColor": "rgba(42, 46, 57, 0.06)",
                        "container_id": "tradingview_8564d"
                        }
                        );
                        </script>
                        </div>
                        <!-- TradingView Widget END -->
            </div>
            <div class="balance-holder">
                <h4>Top stocks to buy</h4>
                <div class="row">
                    <div class="col-md-4 balance">
                        <div class="item p-4 ">
                            <!-- TradingView Widget BEGIN -->
                            <div class="tradingview-widget-container">
                            <div class="tradingview-widget-container__widget"></div>
                            <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async>
                            {
                            "symbol": "NASDAQ:TSLA",
                            "width": "100%",
                            "height": "100%",
                            "locale": "en",
                            "dateRange": "1D",
                            "colorTheme": "light",
                            "trendLineColor": "rgba(41, 98, 255, 1)",
                            "underLineColor": "rgba(41, 98, 255, 0.3)",
                            "underLineBottomColor": "rgba(41, 98, 255, 0)",
                            "isTransparent": true,
                            "autosize": true,
                            "largeChartUrl": ""
                            }
                            </script>
                            </div>
                            <!-- TradingView Widget END -->
                        </div>
                    </div>
                    <div class="col-md-4 balance">
                        <div class="item p-4 ">
                            <!-- TradingView Widget BEGIN -->
                            <div class="tradingview-widget-container">
                            <div class="tradingview-widget-container__widget"></div>
                            <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async>
                            {
                            "symbol": "NASDAQ:AAPL",
                            "width": "100%",
                            "height": "100%",
                            "locale": "en",
                            "dateRange": "1D",
                            "colorTheme": "light",
                            "trendLineColor": "rgba(41, 98, 255, 1)",
                            "underLineColor": "rgba(41, 98, 255, 0.3)",
                            "underLineBottomColor": "rgba(41, 98, 255, 0)",
                            "isTransparent": true,
                            "autosize": true,
                            "largeChartUrl": ""
                            }
                            </script>
                            </div>
                            <!-- TradingView Widget END -->
                        </div>
                    </div>
                    <div class="col-md-4 balance">
                        <div class="item p-4 ">
                            <!-- TradingView Widget BEGIN -->
                            <div class="tradingview-widget-container">
                            <div class="tradingview-widget-container__widget"></div>
                            <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-mini-symbol-overview.js" async>
                            {
                            "symbol": "NASDAQ:MSFT",
                            "width": "100%",
                            "height": "100%",
                            "locale": "en",
                            "dateRange": "1D",
                            "colorTheme": "light",
                            "trendLineColor": "rgba(41, 98, 255, 1)",
                            "underLineColor": "rgba(41, 98, 255, 0.3)",
                            "underLineBottomColor": "rgba(41, 98, 255, 0)",
                            "isTransparent": true,
                            "autosize": true,
                            "largeChartUrl": ""
                            }
                            </script>
                            </div>
                            <!-- TradingView Widget END -->
                        </div>
                    </div>
                </div>
            </div>
            <div class="balance-holder">
                <h4>Market NEWS</h4>
                <div class="" style="height: 500px;">
                    <!-- TradingView Widget BEGIN -->
                    <div class="tradingview-widget-container">
                    <div class="tradingview-widget-container__widget"></div>
                    <script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-timeline.js" async>
                    {
                    "feedMode": "all_symbols",
                    "colorTheme": "light",
                    "isTransparent": true,
                    "displayMode": "regular",
                    "width": "100%",
                    "height": "100%",
                    "locale": "en"
                    }
                    </script>
                    </div>
                    <!-- TradingView Widget END -->
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make($activeTemplate.'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/neauroca/oxygentrades.com/core/resources/views/templates/invester/user/dashboard.blade.php ENDPATH**/ ?>