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

<?php $__env->startSection('content'); ?>
    <div class="d-flex justify-content-between align-items-center mb-4">
        <h5 class="page-title mb-0">Certifications</h5>
        <a href="<?php echo e(route('admin.certifications.create')); ?>" class="btn btn-primary"><i class="bi bi-plus-lg me-1"></i> Add Certification</a>
    </div>

    <div class="card">
        <div class="card-body p-0">
            <table class="table table-hover align-middle mb-0">
                <thead>
                    <tr><th>#</th><th>Image</th><th>Name</th><th>Organization</th><th>Status</th><th class="text-end">Actions</th></tr>
                </thead>
                <tbody>
                    <?php $__empty_1 = true; $__currentLoopData = $certifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $certification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($loop->iteration); ?></td>
                            <td>
                                <?php if($certification->image): ?>
                                    <img src="<?php echo e(\App\Services\FileUploadService::url($certification->image)); ?>" class="list-image" alt="">
                                <?php else: ?>
                                    <span class="badge bg-secondary"><i class="bi bi-award"></i></span>
                                <?php endif; ?>
                            </td>
                            <td class="fw-semibold"><?php echo e($certification->name); ?></td>
                            <td><?php echo e($certification->issuing_organization ?: '—'); ?></td>
                            <td><?php if($certification->status): ?><span class="badge bg-success">Active</span><?php else: ?><span class="badge bg-secondary">Inactive</span><?php endif; ?></td>
                            <td class="text-end">
                                <a href="<?php echo e(route('admin.certifications.edit', $certification)); ?>" class="btn btn-sm btn-outline-primary">Edit</a>
                                <form action="<?php echo e(route('admin.certifications.destroy', $certification)); ?>" method="POST" class="d-inline" data-confirm="Delete this certification?">
                                    <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                                    <button type="submit" class="btn btn-sm btn-outline-danger">Delete</button>
                                </form>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr><td colspan="6" class="text-center text-muted py-4">No certifications yet.</td></tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>
    <div class="mt-3"><?php echo e($certifications->links()); ?></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\skyline\resources\views/admin/certifications/index.blade.php ENDPATH**/ ?>