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

    <!-- ========User-Panel-Section Starte Here ========-->
    <div class="row">
        <div class="col-12">
            <h2 class="content-header"><?php echo e(__($page_title)); ?></h2>
        </div>
    </div>

    <div class="row mb-60-80">

        <?php $__currentLoopData = $authWallets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=> $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-xl-4 col-lg-6 col-md-6 col-12">
                <div class="card bg-white">
                    <div class="card-body">
                        <div class="card-block pt-2 pb-0">
                            <div class="media">
                                <div class="media-body white text-left">
                                    <h4 class="font-medium-5 card-title mb-0"><?php echo e($general->cur_sym); ?><?php echo e(formatter_money($data->balance)); ?></h4>
                                    <span class="grey darken-1"><?php echo e(__(str_replace('_',' ',strtoupper($data->type)))); ?></span>
                                </div>
                                <div class="media-right text-right">
                                    <?php if($data->type == 'deposit_wallet'): ?>
                                        <a href="<?php echo e(route('user.deposit.history')); ?>">
                                            <i class="icon-wallet font-large-1 warning"></i>
                                        </a>
                                    <?php elseif($data->type == 'interest_wallet'): ?>
                                        <a href="<?php echo e(route('user.referral')); ?>">
                                            <i class="icon-wallet font-large-1 warning"></i>
                                        </a>
                                    <?php endif; ?>
                                </div>
                            </div>
                        </div>
                        <div id="Widget-line-chart<?php echo e($k); ?>" class="height-150 lineChartWidget WidgetlineChart<?php echo e($k); ?> mb-2">
                        </div>
                    </div>
                </div>
            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

        <div class="col-xl-4 col-lg-6 col-md-6 col-12">
            <div class="card bg-white">
                <div class="card-body">
                    <div class="card-block pt-2 pb-0">
                        <div class="media">
                            <div class="media-body white text-left">
                                <h4 class="font-medium-5 card-title mb-0"><?php echo e($general->cur_sym); ?><?php echo e(formatter_money($totalInvest)); ?></h4>
                                <span class="grey darken-1"><?php echo app('translator')->get('Total Invest'); ?></span>
                            </div>
                            <div class="media-right text-right">
                                <a href="<?php echo e(route('user.interest.log')); ?>">
                                    <i class="icon-wallet font-large-1 warning"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div id="Widget-line-chart2" class="height-150 lineChartWidget WidgetlineChart2 mb-2">
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">
        <div class="col-xl-4 col-lg-6 col-md-6 col-12">
            <div class="card bg-white">
                <div class="card-body">
                    <div class="card-block pt-2 pb-0">
                        <div class="media">
                            <div class="media-body white text-left">
                                <h4 class="font-medium-5 card-title mb-0"><?php echo e($general->cur_sym); ?><?php echo e(formatter_money($totalWithdraw)); ?></h4>
                                <span class="grey darken-1"><?php echo app('translator')->get("Total Withdraw"); ?></span>
                            </div>
                            <div class="media-right text-right">
                                <a href="<?php echo e(route('user.withdrawLog')); ?>">
                                    <i class="icon-wallet font-large-1 warning"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div id="Widget-line-chart" class="height-150 lineChartWidget WidgetlineChart mb-2">
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xl-4 col-lg-6 col-md-6 col-12">
            <div class="card bg-white">
                <div class="card-body">
                    <div class="card-block pt-2 pb-0">
                        <div class="media">
                            <div class="media-body white text-left">
                                <h4 class="font-medium-5 card-title mb-0"><?php echo e($general->cur_sym); ?><?php echo e(formatter_money($totalDeposit)); ?></h4>
                                <span class="grey darken-1"><?php echo app('translator')->get('Total Deposit'); ?></span>
                            </div>
                            <div class="media-right text-right">
                                <a href="<?php echo e(route('user.deposit.history')); ?>">
                                    <i class="icon-wallet font-large-1 warning"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div id="Widget-line-chart3" class="height-150 lineChartWidget WidgetlineChart3 mb-2">
                    </div>

                </div>
            </div>
        </div>
        <div class="col-xl-4 col-lg-6 col-md-6 col-12">
            <div class="card bg-white">
                <div class="card-body">
                    <div class="card-block pt-2 pb-0">
                        <div class="media">
                            <div class="media-body white text-left">
                                <h4 class="font-medium-5 card-title mb-0"><?php echo e($totalTicket); ?></h4>
                                <span class="grey darken-1"><?php echo app('translator')->get('Total Ticket'); ?></span>
                            </div>
                            <div class="media-right text-right">
                                <a href="<?php echo e(route('user.ticket')); ?>">
                                    <i class="ft-layers font-large-1 warning"></i>
                                </a>
                            </div>
                        </div>
                    </div>
                    <div id="Widget-line-chart4" class="height-150 lineChartWidget WidgetlineChart4 mb-2">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--Statistics cards Ends-->

    <!--Line with Area Chart 1 Starts-->
    <div class="row match-height">
        <div class="col-xl-12 col-lg-12 col-12">
            <div class="chart">
                <div class="user-header">
                    <h6 class="title"><?php echo app('translator')->get('Revenue Statistics'); ?></h6>
                </div>
                <div class="chart-scroll m-0">
                    <div class="chart-wrapper m-0">
                        <canvas id="myCharT" width="400" height="160"></canvas>
                    </div>
                </div>
            </div>













        </div>
    </div>

    <!-- ========User-Panel-Section Ends Here ========-->
<?php $__env->stopSection(); ?>


<?php $__env->startSection('load-js'); ?>
    <script src="<?php echo e(asset('assets/templates/minimul/js/chart.js')); ?>"></script>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
    <script>
        var ctx = document.getElementById('myCharT').getContext('2d');
        var myChart = new Chart(ctx, {
            type: 'line',
            data: {
                labels: <?php echo json_encode($collection['day'], 15, 512) ?>,
                datasets: [{
                    label: '# Weekly Revenue',
                    data: <?php echo json_encode($collection['trx'], 15, 512) ?>,
                    backgroundColor: [
                        'rgba(58, 248, 93, 0.26)',
                        'rgba(54, 162, 235, 0.2)',
                        'rgba(255, 206, 86, 0.2)',
                        'rgba(75, 192, 192, 0.2)',
                        'rgba(153, 102, 255, 0.2)',
                        'rgba(255, 159, 64, 0.2)',
                        'rgba(58, 248, 93, 0.26)'
                    ],
                    borderColor: [
                        'rgba(58, 248, 80, 0.65)',
                        'rgba(54, 162, 235, 1)',
                        'rgba(255, 206, 86, 1)',
                        'rgba(75, 192, 192, 1)',
                        'rgba(153, 102, 255, 1)',
                        'rgba(255, 159, 64, 1)',
                        'rgba(58, 248, 80, 0.65)'
                    ],
                    borderWidth: 1
                }]
            },
            options: {
                scales: {
                    yAxes: [{
                        ticks: {
                            beginAtZero: true
                        }
                    }]
                }
            }
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make(activeTemplate() .'layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/ectbest/ecoshop.top/core/resources/views/templates/minimal/user/dashboard.blade.php ENDPATH**/ ?>