

<?php $__env->startSection('title', 'Dashboard'); ?>
<?php $__env->startSection('page_class', 'page-dashboard'); ?>

<?php $__env->startSection('content'); ?>
    <div class="page-header">
        <h1 class="page-title">Dashboard</h1>
        <nav class="breadcrumb">
            <a href="<?php echo e(route('dashboard')); ?>" class="breadcrumb-item">Home</a>
            <span class="breadcrumb-item active">Dashboard</span>
        </nav>
    </div>

    <div class="row g-3 mb-4">
        <div class="col-sm-6 col-xl-3">
            <?php if (isset($component)) { $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'eliteadmin::components.stat-card','data' => ['label' => 'Staff Count','value' => $staffCount ?? '0','icon' => 'bi-people','accent' => 'var(--success-color)','trend' => $staffTrend ?? null]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('eliteadmin::stat-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['label' => 'Staff Count','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($staffCount ?? '0'),'icon' => 'bi-people','accent' => 'var(--success-color)','trend' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($staffTrend ?? null)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $attributes = $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $component = $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
        </div>
        <div class="col-sm-6 col-xl-3">
            <?php if (isset($component)) { $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'eliteadmin::components.stat-card','data' => ['label' => 'Active Modules','value' => $activeModules ?? '0','icon' => 'bi-puzzle','accent' => 'var(--accent-color)']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('eliteadmin::stat-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['label' => 'Active Modules','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($activeModules ?? '0'),'icon' => 'bi-puzzle','accent' => 'var(--accent-color)']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $attributes = $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $component = $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
        </div>
        <div class="col-sm-6 col-xl-3">
            <?php if (isset($component)) { $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'eliteadmin::components.stat-card','data' => ['label' => 'License Status','value' => $licenseStatus ?? 'Active','icon' => 'bi-shield-check','accent' => 'var(--info-color)']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('eliteadmin::stat-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['label' => 'License Status','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($licenseStatus ?? 'Active'),'icon' => 'bi-shield-check','accent' => 'var(--info-color)']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $attributes = $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $component = $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
        </div>
        <div class="col-sm-6 col-xl-3">
            <?php if (isset($component)) { $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'eliteadmin::components.stat-card','data' => ['label' => 'Recent Activity','value' => $recentActivityCount ?? '0','icon' => 'bi-activity','accent' => 'var(--warning-color)','trend' => $activityTrend ?? null]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('eliteadmin::stat-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes(['label' => 'Recent Activity','value' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($recentActivityCount ?? '0'),'icon' => 'bi-activity','accent' => 'var(--warning-color)','trend' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($activityTrend ?? null)]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $attributes = $__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__attributesOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd)): ?>
<?php $component = $__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd; ?>
<?php unset($__componentOriginal9a1670e652e0ac1fb1f785465a27d6dd); ?>
<?php endif; ?>
        </div>
    </div>

    <div class="row g-3">
        <div class="col-xl-8">
            <div class="card h-100">
                <div class="card-header">
                    <h5 class="card-title mb-0">Recent Activity</h5>
                </div>
                <div class="card-body p-0">
                    <div class="table-responsive">
                        <table class="table table-hover mb-0">
                            <thead class="table-light">
                                <tr>
                                    <th>User</th>
                                    <th>Action</th>
                                    <th class="d-none d-md-table-cell">Module</th>
                                    <th>Time</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $__empty_1 = true; $__currentLoopData = $recentActivities ?? []; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $activity): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                    <tr>
                                        <td><?php echo e($activity['user'] ?? '—'); ?></td>
                                        <td><?php echo e($activity['action'] ?? '—'); ?></td>
                                        <td class="d-none d-md-table-cell"><?php echo e($activity['module'] ?? '—'); ?></td>
                                        <td class="text-muted small"><?php echo e($activity['time'] ?? '—'); ?></td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                    <tr>
                                        <td colspan="4" class="text-center text-muted py-4">No recent activity</td>
                                    </tr>
                                <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-xl-4">
            <div class="card h-100">
                <div class="card-header">
                    <h5 class="card-title mb-0">Quick Links</h5>
                </div>
                <div class="card-body">
                    <div class="d-grid gap-2">
                        <?php if(Route::has('staff.index')): ?>
                            <a href="<?php echo e(route('staff.index')); ?>" class="btn btn-outline-primary btn-sm text-start">
                                <i class="bi bi-people me-2"></i> Staff &amp; Permissions
                            </a>
                        <?php endif; ?>
                        <?php if(Route::has('modules.index')): ?>
                            <a href="<?php echo e(route('modules.index')); ?>" class="btn btn-outline-primary btn-sm text-start">
                                <i class="bi bi-puzzle me-2"></i> View Modules
                            </a>
                        <?php endif; ?>
                        <?php if(Route::has('marketplace.index')): ?>
                            <a href="<?php echo e(route('marketplace.index')); ?>" class="btn btn-outline-primary btn-sm text-start">
                                <i class="bi bi-shop me-2"></i> Marketplace
                            </a>
                        <?php endif; ?>
                        <?php if(Route::has('settings.index')): ?>
                            <a href="<?php echo e(route('settings.index')); ?>" class="btn btn-outline-primary btn-sm text-start">
                                <i class="bi bi-gear me-2"></i> Settings
                            </a>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('eliteadmin::layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH D:\RABI\rabi\module-laravel-platform\apps\admin\resources\views/dashboard/index.blade.php ENDPATH**/ ?>