<?php $__env->startSection('title','Jobs'); ?>
<?php $__env->startSection('page-title','Job Listings'); ?>
<?php $__env->startSection('content'); ?>
<div class="d-flex justify-content-between align-items-center mb-3">
    <div style="font-size:.82rem;color:#64748b"><?php echo e($jobs->count()); ?> job listings</div>
    <a href="<?php echo e(route('admin.jobs.create')); ?>" class="btn btn-admin btn-sm px-3"><i class="bi bi-plus-lg me-1"></i>Post New Job</a>
</div>
<div class="card-admin">
    <table class="table table-hover mb-0">
        <thead><tr><th>#</th><th>Title</th><th>Department</th><th>Location</th><th>Type</th><th>Status</th><th style="width:100px">Actions</th></tr></thead>
        <tbody>
            <?php $__empty_1 = true; $__currentLoopData = $jobs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $job): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
            <tr>
                <td class="text-muted"><?php echo e($job->id); ?></td>
                <td><div class="fw-600" style="color:#0f172a"><?php echo e($job->title); ?></div></td>
                <td><span style="font-size:.78rem;color:#64748b"><?php echo e($job->department ?? '—'); ?></span></td>
                <td><span style="font-size:.78rem;color:#64748b"><?php echo e($job->location ?? '—'); ?></span></td>
                <td><span style="font-size:.78rem;color:#64748b"><?php echo e($job->job_type ?? '—'); ?></span></td>
                <td><span class="badge" style="background:<?php echo e($job->is_active ? '#f0fdf4' : '#fee2e2'); ?>;color:<?php echo e($job->is_active ? '#166534' : '#991b1b'); ?>;font-size:.72rem"><?php echo e($job->is_active ? 'Active' : 'Inactive'); ?></span></td>
                <td>
                    <div class="d-flex gap-1">
                        <a href="<?php echo e(route('admin.jobs.edit', $job->id)); ?>" class="btn btn-sm" style="background:#eff6ff;color:#1d4ed8;border:none"><i class="bi bi-pencil"></i></a>
                        <form method="POST" action="<?php echo e(route('admin.jobs.destroy', $job->id)); ?>" onsubmit="return confirm('Delete?')"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                            <button class="btn btn-sm" style="background:#fee2e2;color:#991b1b;border:none"><i class="bi bi-trash"></i></button>
                        </form>
                    </div>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
            <tr><td colspan="7" class="text-center py-4 text-muted">No jobs yet.</td></tr>
            <?php endif; ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Justin\Documents\MUVR_Req\MUVRLABS\muvrlabs\resources\views/admin/pages/jobs/index.blade.php ENDPATH**/ ?>