<?php $__env->startSection('title', 'Detail OPD - SKM Survey'); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <div class="row mb-4">
        <div class="col-12">
            <a href="<?php echo e(route('admin.opds.index')); ?>" class="btn btn-secondary mb-3">
                <i class="bi bi-arrow-left"></i> Kembali
            </a>
            <h2 style="color: #1e3a8a; font-weight: 700;">
                <i class="bi bi-eye me-2"></i> Detail Organisasi Perangkat Daerah (OPD)
            </h2>
        </div>
    </div>

    <div class="card card-gov shadow-sm mb-4">
        <div class="card-header">
            <h5 class="mb-0">Informasi OPD</h5>
        </div>
        <div class="card-body">
            <div class="row">
                <div class="col-md-6 mb-3">
                    <strong>Nama OPD:</strong>
                    <p class="mb-0"><?php echo e($opd->name); ?></p>
                </div>
                <div class="col-md-6 mb-3">
                    <strong>Kode:</strong>
                    <p class="mb-0"><span class="badge-gov"><?php echo e($opd->code); ?></span></p>
                </div>
                <div class="col-md-6 mb-3">
                    <strong>Status:</strong>
                    <p class="mb-0">
                        <?php if($opd->is_active): ?>
                            <span class="badge bg-success">Aktif</span>
                        <?php else: ?>
                            <span class="badge bg-secondary">Nonaktif</span>
                        <?php endif; ?>
                    </p>
                </div>
                <div class="col-md-6 mb-3">
                    <strong>Total Response:</strong>
                    <p class="mb-0"><span class="badge bg-info"><?php echo e($opd->responses_count); ?></span></p>
                </div>
                <div class="col-12 mb-3">
                    <strong>Deskripsi:</strong>
                    <p class="mb-0"><?php echo e($opd->description ?? '-'); ?></p>
                </div>
            </div>
        </div>
    </div>

    <div class="card card-gov shadow-sm">
        <div class="card-header d-flex justify-content-between align-items-center">
            <h5 class="mb-0">Aksi</h5>
        </div>
        <div class="card-body">
            <div class="btn-group" role="group">
                <a href="<?php echo e(route('admin.opds.edit', $opd->id)); ?>" class="btn btn-primary">
                    <i class="bi bi-pencil me-2"></i> Edit OPD
                </a>
                <a href="<?php echo e(route('admin.opd.results', $opd->id)); ?>" class="btn btn-success">
                    <i class="bi bi-graph-up me-2"></i> Lihat Hasil Survey
                </a>
                <a href="<?php echo e(route('admin.opd.export.excel', $opd->id)); ?>" class="btn btn-info">
                    <i class="bi bi-file-earmark-excel me-2"></i> Export Excel
                </a>
                <a href="<?php echo e(route('admin.opd.export.pdf', $opd->id)); ?>" class="btn btn-danger">
                    <i class="bi bi-file-earmark-pdf me-2"></i> Export PDF
                </a>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>




<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /Users/user/Documents/giriwidyan/project/inhouse/skm/resources/views/admin/opds/show.blade.php ENDPATH**/ ?>