<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bank Soal SIKK</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
    <style>
        .header-section {
            background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
            color: white;
            padding: 2rem 0;
        }
        .card {
            border: none;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
        }
        .table th {
            background-color: #2a5298;
            color: white;
            border: none;
            font-weight: 600;
        }
        .status-badge {
            padding: 0.4rem 0.8rem;
            border-radius: 15px;
            font-size: 0.85rem;
            font-weight: 600;
        }
        .aktif { background-color: #d4edda; color: #155724; }
        .tidak-aktif { background-color: #f8d7da; color: #721c24; }
    </style>
</head>
<body>
    <!-- Header -->
    <div class="header-section">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-md-8">
                    <h1 class="mb-2">
                        <i class="fas fa-database me-3"></i>
                        Bank Soal SIKK
                    </h1>
                    <p class="mb-0 fs-5">Master Data Indikator Kinerja Kunci</p>
                </div>
                <div class="col-md-4 text-end">
                    <a href="<?php echo e(route('sikk.bank-soal.create')); ?>" class="btn btn-success">
                        <i class="fas fa-plus me-2"></i>Tambah Soal
                    </a>
                </div>
            </div>
        </div>
    </div>

    <div class="container my-5">
        <?php if(session('success')): ?>
            <div class="alert alert-success alert-dismissible fade show" role="alert">
                <i class="fas fa-check-circle me-2"></i>
                <?php echo e(session('success')); ?>

                <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
            </div>
        <?php endif; ?>

        <!-- Filter -->
        <div class="card mb-4">
            <div class="card-body">
                <form method="GET">
                    <div class="row align-items-end">
                        <div class="col-md-3">
                            <label class="form-label fw-semibold">Urusan</label>
                            <select name="urusan" class="form-select">
                                <option value="">Semua Urusan</option>
                                <option value="Pendidikan">Pendidikan</option>
                                <option value="Kesehatan">Kesehatan</option>
                                <option value="Infrastruktur">Infrastruktur</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <label class="form-label fw-semibold">Status</label>
                            <select name="status" class="form-select">
                                <option value="">Semua Status</option>
                                <option value="Aktif">Aktif</option>
                                <option value="Tidak Aktif">Tidak Aktif</option>
                            </select>
                        </div>
                        <div class="col-md-3">
                            <label class="form-label fw-semibold">Cari</label>
                            <input type="text" name="search" class="form-control" placeholder="Kode IKK atau Output...">
                        </div>
                        <div class="col-md-3">
                            <button type="submit" class="btn btn-primary w-100">
                                <i class="fas fa-search me-2"></i>Filter
                            </button>
                        </div>
                    </div>
                </form>
            </div>
        </div>

        <!-- Tabel Bank Soal -->
        <div class="card">
            <div class="card-body p-0">
                <div class="table-responsive">
                    <table class="table table-hover mb-0">
                        <thead>
                            <tr>
                                <th width="8%">Kode IKK</th>
                                <th width="12%">Urusan</th>
                                <th width="15%">Bidang</th>
                                <th width="25%">IKK Output</th>
                                <th width="20%">IKK Outcome</th>
                                <th width="10%">OPD</th>
                                <th width="8%">Status</th>
                                <th width="12%">Aksi</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $bankSoal; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $soal): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <tr>
                                <td class="fw-bold text-primary"><?php echo e($soal->kode_ikk); ?></td>
                                <td><?php echo e($soal->urusan); ?></td>
                                <td><?php echo e($soal->bidang); ?></td>
                                <td><?php echo e($soal->ikk_output); ?></td>
                                <td><?php echo e($soal->ikk_outcome); ?></td>
                                <td><small><?php echo e($soal->opd_penanggung_jawab); ?></small></td>
                                <td>
                                    <span class="status-badge <?php echo e(strtolower(str_replace(' ', '-', $soal->status))); ?>">
                                        <?php echo e($soal->status); ?>

                                    </span>
                                </td>
                                <td>
                                    <div class="btn-group btn-group-sm">
                                        <a href="<?php echo e(route('sikk.bank-soal.show', $soal->id)); ?>" class="btn btn-outline-info" title="Detail">
                                            <i class="fas fa-eye"></i>
                                        </a>
                                        <a href="<?php echo e(route('sikk.bank-soal.edit', $soal->id)); ?>" class="btn btn-outline-warning" title="Edit">
                                            <i class="fas fa-edit"></i>
                                        </a>
                                        <button class="btn btn-outline-danger" title="Nonaktifkan">
                                            <i class="fas fa-ban"></i>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>

        <!-- Info -->
        <div class="card mt-4">
            <div class="card-header bg-info text-white">
                <h6 class="mb-0"><i class="fas fa-info-circle me-2"></i>Informasi Bank Soal SIKK</h6>
            </div>
            <div class="card-body">
                <div class="row">
                    <div class="col-md-6">
                        <p><strong>Fungsi Bank Soal:</strong></p>
                        <ul class="mb-0">
                            <li>Master data indikator IKK</li>
                            <li>Referensi untuk Pelaporan IKK</li>
                            <li>Evaluasi kinerja OPD</li>
                        </ul>
                    </div>
                    <div class="col-md-6">
                        <p><strong>Status Soal:</strong></p>
                        <p><span class="status-badge aktif">Aktif</span> - Digunakan untuk pelaporan</p>
                        <p><span class="status-badge tidak-aktif">Tidak Aktif</span> - Tidak digunakan</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html><?php /**PATH /Users/user/Documents/giriwidyan/project/inhouse/skm/resources/views/sikk/bank_soal/index.blade.php ENDPATH**/ ?>