<?php $__env->startSection('title','Dashboard'); ?>
<?php $__env->startSection('content'); ?>
<div class="d-flex justify-content-between align-items-center mb-4"><div><h3 class="fw-bold mb-1">Dashboard</h3><div class="text-muted">Tổng quan hệ thống quản lý đào tạo</div></div><div class="text-muted"><?php echo e(now()->format('d/m/Y')); ?></div></div>
<div class="row g-4 mb-4">
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Khóa đào tạo</div><h3 class="fw-bold mb-0"><?php echo e($courseCount); ?></h3></div></div></div>
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Lớp học</div><h3 class="fw-bold mb-0"><?php echo e($classCount); ?></h3></div></div></div>
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Học viên</div><h3 class="fw-bold mb-0"><?php echo e($studentCount); ?></h3></div></div></div>
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Giảng viên</div><h3 class="fw-bold mb-0"><?php echo e($teacherCount); ?></h3></div></div></div>
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Trắc nghiệm</div><h3 class="fw-bold mb-0"><?php echo e($quizCount); ?></h3></div></div></div>
<div class="col-md-2"><div class="tms-stat-card"><div><div class="text-muted">Chứng nhận</div><h3 class="fw-bold mb-0"><?php echo e($certificateCount); ?></h3></div></div></div>
</div>
<div class="card shadow-sm"><div class="card-body"><h5 class="fw-bold mb-3">Bài trắc nghiệm mới nhất</h5><table class="table table-hover align-middle"><thead class="table-light"><tr><th>Bài trắc nghiệm</th><th>Lớp học</th><th>Thời gian</th><th>Trạng thái</th></tr></thead><tbody><?php $__empty_1 = true; $__currentLoopData = $quizzes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $quiz): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><tr><td><strong><?php echo e($quiz->title); ?></strong></td><td><?php echo e($quiz->trainingClass->name ?? 'Chưa cập nhật'); ?></td><td><?php echo e($quiz->duration_minutes); ?> phút</td><td><span class="badge bg-success"><?php echo e($quiz->status); ?></span></td></tr><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><tr><td colspan="4" class="text-center text-muted py-4">Chưa có bài trắc nghiệm.</td></tr><?php endif; ?></tbody></table></div></div>
<?php $__env->stopSection(); ?>

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