<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Detail Lembar Jawab IKK</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/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>
        .status-badge {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }
        .draft { background-color: #6c757d; color: white; }
        .diajukan { background-color: #0d6efd; color: white; }
        .diverifikasi { background-color: #198754; color: white; }
        .perlu-perbaikan { background-color: #dc3545; color: white; }
    </style>
</head>
<body class="bg-light">
    <div class="container-fluid py-4">
        <div class="row justify-content-center">
            <div class="col-lg-10">
                <div class="card shadow-sm">
                    <div class="card-header bg-info text-white d-flex justify-content-between align-items-center">
                        <h5 class="mb-0"><i class="fas fa-eye me-2"></i>Detail Lembar Jawab IKK</h5>
                        <span class="status-badge <?php echo e(strtolower(str_replace(' ', '-', $lembarJawab->status))); ?>">
                            <?php echo e($lembarJawab->status); ?>

                        </span>
                    </div>
                    <div class="card-body">
                        <!-- Bagian ATAS -->
                        <div class="row mb-4">
                            <div class="col-md-6">
                                <label class="form-label fw-bold">OPD</label>
                                <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->opd); ?></p>
                            </div>
                            <div class="col-md-6">
                                <label class="form-label fw-bold">Tahun</label>
                                <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->tahun); ?></p>
                            </div>
                        </div>

                        <hr>

                        <!-- Bagian TENGAH (SOAL) -->
                        <h6 class="text-primary mb-3"><i class="fas fa-info-circle me-2"></i>Informasi Indikator</h6>
                        <div class="row mb-3">
                            <div class="col-md-6">
                                <label class="form-label fw-bold">Kode IKK</label>
                                <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->kode_ikk); ?></p>
                            </div>
                            <div class="col-md-6">
                                <label class="form-label fw-bold">Satuan</label>
                                <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->satuan); ?></p>
                            </div>
                        </div>

                        <div class="mb-3">
                            <label class="form-label fw-bold">IKK Output</label>
                            <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->ikk_output); ?></p>
                        </div>

                        <div class="mb-3">
                            <label class="form-label fw-bold">IKK Outcome</label>
                            <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->ikk_outcome); ?></p>
                        </div>

                        <div class="mb-4">
                            <label class="form-label fw-bold">Rumus Perhitungan</label>
                            <p class="form-control-plaintext border rounded p-2 bg-light"><?php echo e($lembarJawab->rumus_perhitungan); ?></p>
                        </div>

                        <hr>

                        <!-- Bagian BAWAH (JAWABAN) -->
                        <h6 class="text-success mb-3"><i class="fas fa-clipboard-check me-2"></i>Jawaban</h6>

                        <div class="row mb-3">
                            <div class="col-md-6">
                                <label class="form-label fw-bold">Capaian</label>
                                <p class="form-control-plaintext border rounded p-2 bg-success text-white text-center fs-5 fw-bold">
                                    <?php echo e($lembarJawab->capaian); ?> <?php echo e($lembarJawab->satuan); ?>

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

                        <div class="mb-3">
                            <label class="form-label fw-bold">Kendala / Masalah</label>
                            <p class="form-control-plaintext border rounded p-3 bg-light"><?php echo e($lembarJawab->kendala); ?></p>
                        </div>

                        <div class="mb-3">
                            <label class="form-label fw-bold">Tindak Lanjut</label>
                            <p class="form-control-plaintext border rounded p-3 bg-light"><?php echo e($lembarJawab->tindak_lanjut); ?></p>
                        </div>

                        <?php if($lembarJawab->file_bukti): ?>
                        <div class="mb-4">
                            <label class="form-label fw-bold">File Bukti</label>
                            <div class="border rounded p-3 bg-light">
                                <i class="fas fa-file-pdf text-danger me-2"></i>
                                <a href="<?php echo e(asset('uploads/ikk/' . $lembarJawab->file_bukti)); ?>" class="text-decoration-none" target="_blank"><?php echo e($lembarJawab->file_bukti); ?></a>
                                <small class="text-muted d-block mt-1">Klik untuk mengunduh file</small>
                            </div>
                        </div>
                        <?php endif; ?>

                        <!-- Button -->
                        <div class="d-flex justify-content-between">
                            <a href="<?php echo e(route('ikk.lembar-jawab.index')); ?>" class="btn btn-secondary">
                                <i class="fas fa-arrow-left me-1"></i>Kembali
                            </a>
                            <?php if($lembarJawab->status == 'DRAFT'): ?>
                                <a href="<?php echo e(route('ikk.lembar-jawab.edit', $lembarJawab->id)); ?>" class="btn btn-warning">
                                    <i class="fas fa-edit me-1"></i>Edit Jawaban
                                </a>
                            <?php endif; ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html><?php /**PATH /Users/user/Documents/giriwidyan/project/inhouse/skm/resources/views/ikk/lembar-jawab/show.blade.php ENDPATH**/ ?>