<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
    <div class="py-12 bg-gray-50 min-h-screen">
        <div class="max-w-7xl mx-auto sm:px-6 lg:px-8 space-y-6">
            
            <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between bg-white p-6 rounded-2xl border border-gray-100 shadow-sm gap-4">
                <div>
                    <h2 class="text-2xl font-black text-gray-800 tracking-tight">Daftar Kunjungan Industri</h2>
                    <p class="text-sm text-gray-400 font-medium mt-0.5">Pantau, validasi, dan kelola semua berkas pengajuan kunjungan yang masuk dari instansi luar.</p>
                </div>
            </div>

            <div class="bg-white shadow-sm rounded-2xl border border-gray-100 overflow-hidden">
                <div class="overflow-x-auto">
                    <table class="w-full min-w-[800px]">
                        <thead>
                            <tr class="bg-gray-50/70 border-b border-gray-100 text-left">
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider w-32">Kode Tiket</th>
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider">Instansi / Prodi</th>
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider">Penanggung Jawab</th>
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider w-40">Tanggal Pelaksanaan</th>
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider text-center w-32">Status</th>
                                <th class="px-6 py-4 font-bold text-gray-400 text-xs uppercase tracking-wider text-center w-28">Aksi</th>
                            </tr>
                        </thead>
                        <tbody class="divide-y divide-gray-100">
                            <?php $__empty_1 = true; $__currentLoopData = $kunjungans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr class="hover:bg-gray-50/40 transition-all">
                                    <!-- Kode Tiket -->
                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <span class="inline-flex items-center px-2.5 py-1 rounded-md bg-gray-100 text-gray-800 text-xs font-mono font-bold">
                                            #<?php echo e($item->kode_tiket); ?>

                                        </span>
                                    </td>

                                    <!-- Instansi / Prodi -->
                                    <td class="px-6 py-4">
                                        <div class="max-w-xs">
                                            <p class="font-bold text-gray-800 text-sm uppercase truncate" title="<?php echo e($item->nama_kampus); ?>">
                                                <?php echo e($item->nama_kampus); ?>

                                            </p>
                                            <p class="text-xs text-gray-400 font-medium uppercase tracking-tight mt-0.5 truncate" title="<?php echo e($item->prodi); ?>">
                                                <?php echo e($item->prodi); ?>

                                            </p>
                                        </div>
                                    </td>

                                    <!-- Penanggung Jawab -->
                                    <td class="px-6 py-4">
                                        <p class="text-sm font-bold text-gray-700"><?php echo e($item->penanggung_jawab); ?></p>
                                        <p class="text-xs text-gray-400 font-mono mt-0.5"><?php echo e($item->no_hp); ?></p>
                                    </td>

                                    <td class="px-6 py-4 whitespace-nowrap">
                                        <div class="flex items-center gap-2 text-sm font-bold text-gray-600">
                                            <?php echo e(\Carbon\Carbon::parse($item->tanggal_kunjungan)->translatedFormat('d M Y')); ?>

                                        </div>
                                    </td>

                                    <td class="px-6 py-4 whitespace-nowrap text-center">
                                        <?php if($item->status == 'pending'): ?>
                                            <span class="inline-flex items-center px-2.5 py-1 bg-amber-50 text-amber-600 text-[10px] font-extrabold rounded-md uppercase tracking-wider border border-amber-100">
                                                Menunggu
                                            </span>
                                        <?php elseif($item->status == 'disetujui'): ?>
                                            <span class="inline-flex items-center px-2.5 py-1 bg-green-50 text-green-600 text-[10px] font-extrabold rounded-md uppercase tracking-wider border border-green-100">
                                                Disetujui
                                            </span>
                                        <?php else: ?>
                                            <span class="inline-flex items-center px-2.5 py-1 bg-red-50 text-red-600 text-[10px] font-extrabold rounded-md uppercase tracking-wider border border-red-100">
                                                Ditolak
                                            </span>
                                        <?php endif; ?>
                                    </td>

                                    <td class="px-6 py-4 whitespace-nowrap text-center">
                                        <a href="<?php echo e(route('admin.kunjungan.show', $item->id)); ?>" 
                                           class="inline-flex items-center justify-center p-2 bg-gray-50 hover:bg-green-50 text-gray-400 hover:text-green-700 rounded-xl border border-gray-200 hover:border-green-200 transition-all shadow-sm active:scale-95 group"
                                           title="Detail Pengajuan">
                                            <svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 transition-transform group-hover:scale-110" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z" />
                                            </svg>
                                        </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr>
                                    <td colspan="6" class="px-6 py-16 text-center">
                                        <div class="flex flex-col items-center justify-center max-w-sm mx-auto">
                                            <div class="p-4 bg-gray-50 rounded-2xl border border-gray-100 mb-4 text-gray-400">
                                            </div>
                                            <h3 class="text-sm font-bold text-gray-700">Tidak Ada Data Kunjungan</h3>
                                            <p class="text-xs text-gray-400 font-medium mt-1">Saat ini belum ada instansi atau kelompok luar yang mengajukan permohonan kunjungan industri.</p>
                                        </div>
                                    </td>
                                </tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?><?php /**PATH D:\TempeZhi\resources\views/admin/kunjungan/index.blade.php ENDPATH**/ ?>