

<style>
    .dashboard-card {
        background: #ffffff;
        border-radius: 10px;
        box-shadow: 0 6px 15px rgba(0,0,0,0.08);
        overflow: hidden;
        margin-bottom: 25px;
        transition: transform .2s ease;
    }

    .dashboard-card:hover {
        transform: translateY(-3px);
    }

    .dashboard-card .card-body {
        padding: 5px;
        text-align: center;
    border: solid 2px #959595;
    border-radius: 10px 10px 0 0;
        background-color: #fff !important;
    color: #000 !important;
    }

    .dashboard-card h3 {
        font-weight: 700;
        margin-bottom: 6px;
        font-size: 23px;
    }

    .dashboard-card p {
        margin: 0;
        font-size: 12px;
        color: #444;
        font-weight: 600;
    }

    .card-footer-bar {
        background: linear-gradient(90deg, #2b0fd6, #8b1020);
        padding: 10px;
        text-align: center;
    }

    .card-footer-bar a {
        color: #fff;
        font-size: 13px;
        text-decoration: none;
        font-weight: 600;
    }

    .filter-row {
        margin-bottom: 25px;
    }
</style>

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

    <!-- Filter Row -->
        <form action="" method="get">
            <?php echo csrf_field(); ?>
    <div class="row filter-row align-items-center">
            <div class="col-md-3">
            <input type="date" name="date" class="form-control" value="<?php echo e(date('Y-m-d')); ?>">
        </div>
        <div class="col-md-2 mt-2">
            <button class="btn btn-primary" type="submit">FILTER DATA</button>
        </div>
        
    </div>
        </form>


    <!-- Dashboard Cards -->
    <div class="row">
        <?php if($pendingwithdraw > 0): ?>
        <div class="col-xl-12 col-md-12 col-sm-12 col-12">
            <a href="<?php echo e(url('admin/withdraw')); ?>"><div class="alert alert-warning mb-3 text-dark">
                <strong>⚠️ (<?php echo e($pendingwithdraw); ?>) Pending Withdraw Requests</strong>
            </div></a>
        </div>
        <?php endif; ?>
        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e(number_format($walletamount,2)); ?></h3>
                    <p>Your Wallet</p>
                </div>
                <div class="card-footer-bar">
                    <a href="#">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($usercount ?? 0); ?></h3>
                    <p>Total Users</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/customer')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($totalplay ?? 0); ?></h3>
                    <p>Today Bet Amount</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/profit-loss')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($totalplayusers ?? 0); ?></h3>
                    <p>Today Play Users</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/customer?play=true')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($userregistertoday ?? 0); ?></h3>
                    <p>Today Register Users</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/customer?register=true')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($todayprofit ?? 0); ?></h3>
                    <p>Today Profit</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/profit-loss')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($withdraw ?? 0); ?></h3>
                    <p>Today Withdraw Complete</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/withdraw')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($paymentadded ?? 0); ?></h3>
                    <p>Today Deposit</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/report/money')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($userwinn ?? 0); ?></h3>
                    <p>Today Winning Amount</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/profit-loss')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e(number_format($walletamount)); ?></h3>
                    <p>Total Wallet Balance</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/customer')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($userInactivecount ?? 0); ?></h3>
                    <p>Banned Users</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/customer?status=0')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($admindeposit ?? 0); ?></h3>
                    <p>Today Admin Deposit</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/report/money')); ?>">More info →</a>
                </div>
            </div>
        </div>

        <div class="col-xl-3 col-md-6 col-sm-6 col-6">
            <div class="dashboard-card">
                <div class="card-body">
                    <h3><?php echo e($adminwithdraw ?? 0); ?></h3>
                    <p>Today Admin Withdraw</p>
                </div>
                <div class="card-footer-bar">
                    <a href="<?php echo e(url('/admin/fund-report?admin=true&transaction_type=debit')); ?>">More info →</a>
                </div>
            </div>
        </div>

    </div>
</div>
<?php $__env->stopSection(); ?>
    <?php $__env->startSection('js-content'); ?>
    <script>
        function updateStatus(status) {
            document.getElementById('statusInput').value = status;
            document.getElementById('statusForm').submit();
        }
    </script>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.main-layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/profcymadev/public_html/onebet.profcymadev.in/resources/views/admin/dashboard.blade.php ENDPATH**/ ?>