

<?php $__env->startSection('title', 'Admin Dashboard'); ?>

<?php $__env->startPush('styles'); ?>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap" rel="stylesheet">
<style>
    body {
        font-family: 'Poppins', sans-serif;
    }
    .card-stat {
        transition: transform 0.2s ease-in-out;
    }
    .card-stat:hover {
        transform: scale(1.03);
    }
    .stat-title {
        font-size: 0.9rem;
        color: rgba(255,255,255,0.85);
    }
    .stat-value {
        font-size: 2rem;
        font-weight: 600;
    }
</style>
<?php $__env->stopPush(); ?>

<?php $__env->startSection('content'); ?>
<div class="container py-4">
    <h2 class="mb-4 text-center text-primary fw-bold">Admin Dashboard</h2>

    <div class="row g-4">
        <?php
            $tiles = [
                ['title' => 'Registered Students', 'value' => $totalStudents, 'icon' => 'fas fa-user-graduate', 'bg' => '#17a2b8'],
                ['title' => 'Programmes Offered', 'value' => $totalProgrammes, 'icon' => 'fas fa-book-open', 'bg' => '#28a745'],
                ['title' => 'Total Courses', 'value' => $totalCourses, 'icon' => 'fas fa-chalkboard-teacher', 'bg' => '#ffc107', 'color' => '#000'],
                ['title' => 'Accommodation Requests', 'value' => $totalAccommodation, 'icon' => 'fas fa-bed', 'bg' => '#6f42c1'],
                ['title' => 'Deferment Requests', 'value' => $totalDeferments, 'icon' => 'fas fa-envelope-open-text', 'bg' => '#dc3545'],
                ['title' => 'Published Notices', 'value' => $totalNotices, 'icon' => 'fas fa-bullhorn', 'bg' => '#20c997'],
                ['title' => 'Downloadable Files', 'value' => $totalDownloads, 'icon' => 'fas fa-folder-open', 'bg' => '#fd7e14'],
                ['title' => 'Coursework Entries', 'value' => $totalCoursework, 'icon' => 'fas fa-tasks', 'bg' => '#007bff'],
                ['title' => 'Exam Results Posted', 'value' => $totalExams, 'icon' => 'fas fa-poll', 'bg' => '#6610f2'],
                ['title' => 'Fees Paid ($)', 'value' => number_format($feesPaid, 2), 'icon' => 'fas fa-money-bill-wave', 'bg' => '#198754'],
                ['title' => 'Fees Due ($)', 'value' => number_format($feesDue, 2), 'icon' => 'fas fa-hand-holding-usd', 'bg' => '#d63384'],
            ];
        ?>

        <?php $__currentLoopData = $tiles; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tile): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <div class="col-md-6 col-lg-4 d-flex">
            <div class="card text-white w-100 shadow-sm border-0 card-stat" style="background-color: <?php echo e($tile['bg']); ?>; color: <?php echo e($tile['color'] ?? '#fff'); ?>;">
                <div class="card-body d-flex align-items-center">
                    <div class="me-3">
                        <i class="<?php echo e($tile['icon']); ?> fa-2x"></i>
                    </div>
                    <div>
                        <div class="stat-title"><?php echo e($tile['title']); ?></div>
                        <div class="stat-value"><?php echo e($tile['value']); ?></div>
                    </div>
                </div>
            </div>
        </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </div>

    <div class="mt-5 text-muted text-center small">
        Logged in as <strong><?php echo e(Auth::user()->name); ?></strong> (<?php echo e(Auth::user()->email); ?>)
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp\htdocs\studentportal\resources\views/admin/dashboard.blade.php ENDPATH**/ ?>