<?php
    $subscribe = isSubscribe(auth()->user()->id);
    $imageCount = auth()->user()->image_count;
?>

<?php $__env->startSection('content'); ?>
    <!-- Start Dashboard -->
    <div class="body-wrapper">

        <div class="table-content">
            <div class="row g-4">
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Balance'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($mainBalance)); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-wallet"></i>
                            </div>
                        </a>
                    </div>
                </div>

                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Deposits'); ?></p>
                                </div>
                                <div class="content">
                                    <span
                                        class="text-uppercase"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($totalDeposits)); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-money-bill"></i>
                            </div>
                        </a>
                    </div>
                </div>

                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Withdrawals'); ?></p>
                                </div>
                                <div class="content">
                                    <span
                                        class="text-uppercase"><?php echo e($general->cur_sym); ?><?php echo e(showAmount($totalWithdrawals)); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-dollar-sign"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Pending Deposits Count'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($pendingDepositsCount); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-pause-circle"></i>
                            </div>
                        </a>
                    </div>
                </div>

                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Pending Withdrawals Count'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($pendingWithdrawalsCount); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="far fa-pause-circle"></i>
                            </div>
                        </a>
                    </div>
                </div>

                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Total Files'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($totalFiles); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fab fa-microsoft"></i>
                            </div>
                        </a>
                    </div>
                </div>

                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Pending Files'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($pendingFiles); ?>6</span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fab fa-unsplash"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('On Reviewing Files'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($onReviewingFiles); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-history"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Published Files'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($publishedFiles); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-download"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Rejected Files'); ?></p>
                                </div>
                                <div class="content">
                                    <span class="text-uppercase"><?php echo e($rejectedFiles); ?></span>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-times-circle"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Photo Count'); ?></p>
                                </div>
                                <div class="content">
                                    <?php if(isset($imageCount)): ?>
                                        <span class="text-uppercase"><?php echo e($imageCount); ?></span>
                                    <?php else: ?>
                                        <span class="text-uppercase">0</span>
                                    <?php endif; ?>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-calculator"></i>
                            </div>
                        </a>
                    </div>
                </div>
                <div class="col-xl-3 col-lg-4 col-md-6 col-12">
                    <div class="dash-card">
                        <a href="#" class="d-flex justify-content-between">
                            <div>
                                <div class="title">
                                    <p><?php echo app('translator')->get('Plan Activation Status'); ?></p>
                                </div>
                                <div class="content">
                                    <?php if(isset($subscribe)): ?>
                                        <p class="text--base"><?php echo app('translator')->get('Activated'); ?></p>
                                    <?php else: ?>
                                        <p class="text--danger"><?php echo app('translator')->get('Deactivated'); ?></p>
                                    <?php endif; ?>
                                </div>

                            </div>
                            <div class="icon1">
                                <i class="fas fa-check-circle"></i>
                            </div>
                        </a>
                    </div>
                </div>

            </div>

            <div class="row pe-0">
                <div class="col-12">
                    <div class="chart">
                        <div class="chart-bg">
                            <h5 class="card-title"><?php echo app('translator')->get('Monthly Deposit & Withdraw Report'); ?> (<?php echo app('translator')->get('This year'); ?>)</h5>
                            <div id="account-chart"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Dashboard -->
<?php $__env->stopSection(); ?>

<?php $__env->startPush('script-lib'); ?>
    <!-- apexcharts js -->
    <script src="<?php echo e(asset($activeTemplateTrue . 'js/apexcharts.min.js')); ?>"></script>
    <!-- wow js -->
    <script src="<?php echo e(asset($activeTemplateTrue . 'js/wow.min.js')); ?>"></script>
<?php $__env->stopPush(); ?>

<?php $__env->startPush('script'); ?>
    <script src="<?php echo e(asset('assets/admin/js/apexcharts.min.js')); ?>"></script>

    <script>
        "use strict";
        // [ account-chart ] start
        (function() {
            var options = {
                chart: {
                    type: 'area',
                    stacked: false,
                    height: '310px'
                },
                stroke: {
                    width: [0, 3],
                    curve: 'smooth'
                },
                plotOptions: {
                    bar: {
                        columnWidth: '50%'
                    }
                },
                colors: ['#<?php echo e($color); ?>', '#<?php echo e($color); ?>'],
                series: [{
                    name: '<?php echo app('translator')->get('Withdrawals'); ?>',
                    type: 'column',
                    data: <?php echo json_encode($withdrawalsChart['values'], 15, 512) ?>
                }, {
                    name: '<?php echo app('translator')->get('Deposits'); ?>',
                    type: 'area',
                    data: <?php echo json_encode($depositsChart['values'], 15, 512) ?>
                }],
                fill: {
                    opacity: [0.85, 1],
                },
                labels: <?php echo json_encode($depositsChart['labels'], 15, 512) ?>,
                markers: {
                    size: 0
                },
                xaxis: {
                    type: 'text'
                },
                yaxis: {
                    min: 0
                },
                tooltip: {
                    shared: true,
                    intersect: false,
                    y: {
                        formatter: function(y) {
                            if (typeof y !== "undefined") {
                                return "$ " + y.toFixed(0);
                            }
                            return y;

                        }
                    }
                },
                legend: {
                    labels: {
                        useSeriesColors: true
                    },
                    markers: {
                        customHTML: [
                            function() {
                                return ''
                            },
                            function() {
                                return ''
                            }
                        ]
                    }
                }
            }
            var chart = new ApexCharts(
                document.querySelector("#account-chart"),
                options
            );
            chart.render();
        })();
    </script>
<?php $__env->stopPush(); ?>

<?php echo $__env->make($activeTemplate . 'layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\photostack\application\resources\views/presets/default/user/dashboard.blade.php ENDPATH**/ ?>