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

    <?= $this->section('title') ?>
    <title>GALERI &mdash; KUA WAY BUNGUR</title>
    <?= $this->endSection() ?>

    <?= $this->section('css') ?>
    <?= $this->endSection() ?>

    <?= $this->section('content') ?>

    <div style="width: 100%; height: 150px;background-color: #1e1f1e;box-shadow: 2px 2px 3px #000;">
        <div style="padding-top: 40px;padding-bottom: 50px" class="d-flex flex-column align-items-center">
            <div class="d-flex align-items-center justify-content-center">
                <h3 style="font-weight: bold;text-transform: uppercase" class=" text-white">galeri detail</h3>
            </div>
            <div class="d-flex align-items-center justify-content-center ">
                <a style="hover:none;" href="<?= base_url('/') ?>"><i class="fa fa-home"></i>&nbsp;Home</a>
                &nbsp;<span class="text-white">
                    /</span>
                <a style="hover:none;" href="<?= base_url('galeri') ?>">&nbsp;Galeri</a>
                &nbsp;<span class="text-white">
                    /</span>&nbsp;<span class="text-white">Galeri Detail</span>
            </div>
        </div>
    </div>


    <div class="whats-news-area pt-30 pb-20 gray-bg">
        <div class="container">
            <div class="row ">

                <div class="col-12 mb-30">
                    <div class="whats-news-wrapper">

                        <!-- Tab content -->
                        <div class="row d-flex flex-row align-items-center justify-content-center">
                            <div class="col-12">
                                <!-- Nav Card -->
                                <div class="tab-content" id="nav-tabContent">
                                    <!-- card one -->
                                    <div class="tab-pane fade show active" id="nav-home" role="tabpanel"
                                        aria-labelledby="nav-home-tab">
                                        <div class="row">
                                            <!-- Left Details Caption -->
                                            <div class="col-xl-12 col-lg-12">
                                                <div class="whats-news-single mb-30 ">
                                                    <div class="whates-caption text-center">
                                                        <h3>
                                                            <?= $galeriData->judul ?>
                                                        </h3>
                                                        <span>by <?php
                                                                    $Name = '';
                                                                    foreach ($user as $userdata) {
                                                                        if ($userdata->id_admin == $galeriData->id_admin) {
                                                                            $Name = $userdata->nama_admin;
                                                                            break;
                                                                        }
                                                                    }
                                                                    echo $Name;
                                                                    ?>

                                                        </span>
                                                        <hr>
                                                    </div>
                                                    <div class="whates-img">
                                                        <img src="<?= base_url() ?>foto_gallery/<?= $galeriData->gambar ?>"
                                                            alt="" class="img-fluid" loading="lazy" />
                                                    </div>
                                                    <div class="whates-caption">

                                                        <div>
                                                            <?= $galeriData->keterangan ?>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>

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

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




    <?= $this->endSection() ?>

    <?= $this->section('js') ?>
    <?= $this->endSection() ?>