<?php $__env->startSection('title', 'Pegawai Belum Assessment'); ?>

<?php $__env->startSection('content'); ?>
<div class="content-header mb-4">
    <div class="d-flex justify-content-between align-items-center">
        <div>
            <h4 class="mb-1">Pegawai Belum Melakukan Assessment (<?php echo e($assessmentYear); ?>)</h4>
        </div>
        <div>
            <a href="<?php echo e(route('admin.dashboard')); ?>" class="btn btn-outline-secondary">
                <i class="fas fa-arrow-left me-1"></i> Kembali ke Dashboard
            </a>
        </div>
    </div>
</div>

<div class="card border-0 shadow-sm rounded-4">
    <div class="card-body p-0">
        <?php if($pegawai->isNotEmpty()): ?>
            <div class="table-responsive">
                <table class="table table-hover align-middle mb-0">
                    <thead class="bg-light">
                        <tr>
                            <th class="border-0 px-4 py-3" style="width: 5%">No</th>
                            <th class="border-0 px-4 py-3" style="width: 35%">Informasi Pegawai</th>
                            <th class="border-0 px-4 py-3" style="width: 30%">Jabatan</th>
                            <th class="border-0 px-4 py-3" style="width: 30%">Unit Kerja</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__currentLoopData = $pegawai; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="px-4 py-3"><?php echo e($pegawai->firstItem() + $index); ?></td>
                                <td class="px-4 py-3">
                                    <div class="fw-bold text-dark mb-1"><?php echo e($item->nama_lengkap); ?></div>
                                    <div class="text-muted small">
                                        <i class="fas fa-id-card me-1"></i> NIP: <?php echo e($item->nip); ?>

                                    </div>
                                    <div class="text-muted small">
                                        <i class="fas fa-layer-group me-1"></i> Gol: <?php echo e($item->golongan ?? '-'); ?>

                                    </div>
                                </td>
                                <td class="px-4 py-3">
                                    <div class="fw-medium text-dark mb-1"><?php echo e($item->jabatan?->nama_jabatan ?? '-'); ?></div>
                                    <div class="text-muted small">
                                        <i class="fas fa-tag me-1"></i> <?php echo e($item->jabatan?->jenjang_label ?? '-'); ?>

                                    </div>
                                </td>
                                <td class="px-4 py-3">
                                    <div class="text-dark"><?php echo e($item->unit_kerja ?? '-'); ?></div>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                </table>
            </div>
            
            <div class="d-flex justify-content-center p-4 border-top">
                <?php echo e($pegawai->links()); ?>

            </div>
        <?php else: ?>
            <div class="text-center py-5">
                <div class="mb-3">
                    <i class="fas fa-check-circle text-success" style="font-size: 3rem;"></i>
                </div>
                <h5 class="text-dark fw-bold">Semua Pegawai Sudah Assessment</h5>
                <p class="text-muted">Tidak ada pegawai valid yang belum melakukan assessment kompetensi tahun <?php echo e($assessmentYear); ?>.</p>
            </div>
        <?php endif; ?>
    </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:\laragon\www\Skripsi-M\resources\views/admin/belum-assessment.blade.php ENDPATH**/ ?>