<?php $__env->startSection('admin_content'); ?>
    <style>
        .card-body {
            background: #425c49;
        }

        .text-muted {
            color: #fff !important;
        }

        h3 {
            color: #fff;
        }

        .card{
    background: #F7F9F9 !important; 
}
.card-body{
    box-shadow: -8px 12px 18px 0 rgba(25, 42, 70, 0.13);
    transition: all .3s ease-in-out;
    background: #149c58 !important;
}
    </style>
    <section id="dashboard-ecommerce">
        
        <div class="row">
            <div class="col-xl-12 col-12 dashboard-users">
                <div class="alert alert-success mt-1 mb-1" role="alert">
                    <h4 class="alert-heading">Welcome Admin</h4>
                    <p>If you need a developer then contact us. Any bug fixes, payment gateway setup, new features added etc.  <a href="https://t.me/msbdeveloper" class="text-primary"> Contact Me</a></p>
                   
                  </div>

                <div class="row  ">
                    <div class="col-12">
                        <div class="row">
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-user font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Total Users</div>
                                            <h3 class="mb-0"><?php echo e(\App\Models\User::get()->count()); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-4 col-12 dashboard-users-success">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-success mx-auto mb-50">
                                                <i class="bx bx-briefcase-alt font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Total Purchase</div>
                                            <h3 class="mb-0"><?php echo e(\App\Models\Purchase::get()->count()); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>

                            <div class="col-sm-4 col-12 dashboard-users-success">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-success mx-auto mb-50">
                                                <i class="bx bx-briefcase-alt font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Total Checkin</div>
                                            <h3 class="mb-0"><?php echo e(\App\Models\Checkin::get()->count()); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-shopping-bag font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Active Bonus</div>
                                            <?php
                                            $b = \App\Models\Bonus::where('status', 'active')->first();
                                            ?>
                                            <h3 class="mb-0"
                                                style="font-size: 13px !important;"><?php echo e($b ? $b->bonus_name : 'Bonus not Available'); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-shopping-bag font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Already Use Bonus</div>
                                            <?php
                                            $b_c = \App\Models\Bonus::where('status', 'active')->first();
                                            ?>
                                            <h3 class="mb-0" style="font-size: 13px !important;"><?php echo e($b_c ? $b_c->counter : 'N/A'); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>



                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Approved Withdraw</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Withdrawal::where('status', 'approved')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Pending Withdraw</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Withdrawal::where('status', 'pending')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Rejected Withdraw</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Withdrawal::where('status', 'rejected')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Approved Deposit</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Deposit::where('status', 'approved')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Pending Deposit</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Deposit::where('status', 'pending')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 col-12 dashboard-users-danger">
                                <div class="card text-center">
                                    <div class="card-content">
                                        <div class="card-body py-1">
                                            <div
                                                class="badge-circle badge-circle-lg badge-circle-light-danger mx-auto mb-50">
                                                <i class="bx bx-circle font-medium-5"></i>
                                            </div>
                                            <div class="text-muted line-ellipsis">Rejected Deposit</div>
                                            <h3 class="mb-0"><?php echo e(price(\App\Models\Deposit::where('status', 'rejected')->get()->sum('amount'))); ?></h3>
                                        </div>
                                    </div>
                                </div>
                            </div>

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

<?php echo $__env->make('admin.partials.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\hack\resources\views/admin/dashboard.blade.php ENDPATH**/ ?>