<?= $this->extend('layout/template') ?>

<?= $this->section('content') ?>
<div class="container-fluid">
    <div class="d-flex justify-content-between align-items-center mb-4">
        <div>
            <h1 class="h3 mb-1 text-gray-800 fw-bold">Input Progres OPD</h1>
            <p class="mb-0 text-muted">Bantu input progres jika OPD mengalami kendala</p>
        </div>
    </div>

    <div class="row">
        <div class="col-lg-12">
            <div class="card shadow mb-4">
                <div class="card-header py-3">
                    <h6 class="m-0 font-weight-bold text-primary">Pilih OPD</h6>
                </div>
                <div class="card-body">
                    <div class="row">
                        <?php foreach($opdList as $opd): ?>
                        <div class="col-xl-3 col-md-6 mb-4">
                            <div class="card border-left-primary shadow h-100 py-2">
                                <div class="card-body">
                                    <div class="row no-gutters align-items-center">
                                        <div class="col mr-2">
                                            <div class="text-xs font-weight-bold text-primary text-uppercase mb-1"><?= $opd['nama_opd'] ?></div>
                                            <div class="h5 mb-0 font-weight-bold text-gray-800">
                                                <a href="<?= base_url('admin_bidang/input_progres/form/'.$opd['id']) ?>" class="btn btn-sm btn-primary mt-2">
                                                    <i class="fas fa-edit me-1"></i> Input Progres
                                                </a>
                                            </div>
                                        </div>
                                        <div class="col-auto">
                                            <i class="fas fa-building fa-2x text-gray-300"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?= $this->endSection() ?>
