<?php $__env->startSection('title', 'Classes'); ?>
<?php $__env->startSection('page_title', 'Classes & Sections'); ?>
<?php $__env->startSection('breadcrumbs'); ?>
    <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li><li class="breadcrumb-item active">Classes</li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_actions'); ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('academics.create')): ?><a href="<?php echo e(route('classes.create')); ?>" class="btn btn-primary"><i class="bi bi-plus-lg me-1"></i>Add Class</a><?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="card"><div class="card-body">
        <table class="table table-hover align-middle">
            <thead><tr><th>Class</th><th class="text-center">Level</th><th class="text-center">Sections</th><th class="text-center">Subjects</th><th class="text-center">Students</th><th class="text-center">Status</th><th class="text-end">Actions</th></tr></thead>
            <tbody>
                <?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $class): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td><a href="<?php echo e(route('classes.show', $class)); ?>" class="fw-semibold text-decoration-none"><?php echo e($class->name); ?></a></td>
                        <td class="text-center"><?php echo e($class->level); ?></td>
                        <td class="text-center"><?php echo e($class->sections_count); ?></td>
                        <td class="text-center"><?php echo e($class->subjects_count); ?></td>
                        <td class="text-center"><?php echo e($class->students_count); ?></td>
                        <td class="text-center"><?php if($class->is_active): ?><span class="badge bg-soft-success">Active</span><?php else: ?><span class="badge bg-soft-danger">Inactive</span><?php endif; ?></td>
                        <td class="text-end">
                            <a href="<?php echo e(route('classes.show', $class)); ?>" class="btn btn-sm btn-light border" title="Manage"><i class="bi bi-gear"></i></a>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('academics.update')): ?><a href="<?php echo e(route('classes.edit', $class)); ?>" class="btn btn-sm btn-light border"><i class="bi bi-pencil"></i></a><?php endif; ?>
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('academics.delete')): ?><form method="POST" action="<?php echo e(route('classes.destroy', $class)); ?>" class="d-inline" data-confirm="Delete <?php echo e($class->name); ?>?"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="btn btn-sm btn-light border text-danger"><i class="bi bi-trash"></i></button></form><?php endif; ?>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </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 /home/u385418287/domains/itartificer.com/public_html/sms-erp/resources/views/academics/classes/index.blade.php ENDPATH**/ ?>