

<?php $__env->startSection('content'); ?>
<div class="container">

    <div class="row">
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Total users</p>
                    <h2><?php echo e($totalUsers); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-user"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Active users</p>
                    <h2><?php echo e($activeUsers); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-user-check"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Inactive users</p>
                    <h2><?php echo e($inactiveUsers); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-user-times"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Total user balance</p>
                    <h2><?php echo e(number_format($totalUserBalance, 2)); ?> <?php echo e(optional($settings)->website_currency ?? 'USD'); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-wallet"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Total deposits</p>
                    <h2><?php echo e(number_format($totalDeposits, 2)); ?> <?php echo e(optional($settings)->website_currency ?? 'USD'); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-money-bill-wave-alt"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Today's deposits</p>
                    <h2><?php echo e(number_format($todayDeposits, 2)); ?> <?php echo e(optional($settings)->website_currency ?? 'USD'); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-calendar-day"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Total withdrawn</p>
                    <h2><?php echo e(number_format($totalWithdrawn, 2)); ?> <?php echo e(optional($settings)->website_currency ?? 'USD'); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-hand-holding-usd"></i>
                </div>
            </div>
        </div>
        <div class="width-25">
            <div class="card card-stats">
                <div class="card-stats-text">
                    <p>Total numbers</p>
                    <h2><?php echo e($totalNumbers); ?></h2>
                </div>
                <div class="card-stats-icon">
                    <i class="las la-sim-card"></i>
                </div>
            </div>
        </div>
    </div>


    <div class="card table-card">
        <div class="table-header">
            <h2>All users</h2>
        </div>
        <div class="table-responsive">
            <table class="table">
                <thead>
                    <tr>
                        <th>Sl</th>
                        <th>Full name</th>
                        <th>Email</th>
                        <th>Balance</th>
                        <th>Status</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $recentUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($index + 1); ?></td>
                            <td><?php echo e($user->fname); ?> <?php echo e($user->lname); ?></td>
                            <td><?php echo e($user->email); ?></td>
                            <td><?php echo e(number_format($user->balance, 2)); ?> <?php echo e(optional($settings)->website_currency ?? 'USD'); ?></td>
                            <td>
                                <span class="badge <?php echo e($user->status ? 'active' : 'inactive'); ?>">
                                    <?php echo e($user->status ? 'Active' : 'Inactive'); ?>

                                </span>
                            </td>
                            <td>
                                <div class="table-actions">
                                    <a href="<?php echo e(route('backend.users.details', $user->id)); ?>" class="table-btn"><i class="las la-pen"></i></a>
                                </div>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="7" class="text-center">No users found.</td>
                        </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layout.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/namebud5/demo-nbverify.namebudget.net/core/resources/views/backend/dashboard.blade.php ENDPATH**/ ?>