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

    <div class="dashbord_home">
        <div class="row">

            <div class="row col-12  mb-5">
                <div class="col-12">
                    <div class="row">
                        <div class="col-lg-8">
                            <h5 class="text-uppercase font-weight-bold"><?php echo e(__('dashboard.all_visits')); ?></h5>
                        </div>
                        <div class="col-lg-4">
                            <select name="state_year" id="state_year" class="state_year form-control">
                                <?php for($i = date('Y'); $i >= 2025; $i--): ?>
                                    <option value="<?php echo e($i); ?>"> <?php echo e($i); ?> </option>
                                <?php endfor; ?>
                            </select>
                        </div>
                    </div>
                    <br />
                    <canvas class="border-item lineChart" width="400" height="150"></canvas>
                </div>
            </div>

            <div class="row col-12  mb-5">
                <div class="col-lg-6">
                    <div class="new-users border-item">
                        <div class="datatitle">
                            <h6 class="text-uppercase font-weight-bold"><?php echo e(__('dashboard.website_visits')); ?></h6>
                        </div>

                        <div class="items">
                            <span class="number text-primary">
                                <?php echo e($allUsersCounts); ?>

                            </span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="new-users border-item">
                        <div class="datatitle">
                            <h6 class="text-uppercase font-weight-bold"><?php echo e(__('dashboard.visits_this_year')); ?> (<?php echo e(date('Y')); ?>)</h6>
                        </div>

                        <div class="items">
                            <span class="number text-primary">
                                <?php echo e($yearUsers); ?>

                            </span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="new-users border-item">
                        <div class="datatitle">
                            <h6 class="text-uppercase font-weight-bold"> <?php echo e(__('dashboard.month_visits')); ?> (<?php echo e(__('web.'.date('F'))); ?>) </h6>
                        </div>

                        <div class="items">
                            <span class="number text-primary">
                                <?php echo e($monthUsers); ?>

                            </span>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6">
                    <div class="new-users border-item">
                        <div class="datatitle">
                            <h6 class="text-uppercase font-weight-bold"><?php echo e(__('dashboard.day_visits')); ?> (<?php echo e(__('web.'.date('l'))); ?>) </h6>
                        </div>

                        <div class="items">
                            <span class="number text-primary">
                                <?php echo e(!empty($dayUsers) ? $dayUsers : 0); ?>

                            </span>
                        </div>
                    </div>
                </div>


            </div>

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

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

    <script>
        const state_route= '<?php echo e(route("dashboard.stats")); ?>'
    </script>
    <script src="<?php echo e(asset('assets/admin/js/lib/Chart.min.js')); ?>"></script>
    <script src="<?php echo e(asset('assets/admin/js/charts.js')); ?>"></script>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.container', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mostafagalal/Desktop/Sites/madar/resources/views/admin/index.blade.php ENDPATH**/ ?>