<?= $this->extend('layouts/theme-frontend') ?>
<?= $this->section('content-frontend') ?>

<div class="jumbotron-fluid p-4 bg-light">
    <div class="row">
        <div class="col-md-12">
            <h1 class="text-center display-4"><?= $title; ?></h1>
            <h4 class="text-center"></h4>
        </div>
    </div>
</div>

<div class="container my-5">
    <div class="row">
        <?php foreach ($ekstrakurikuler as $e) : ?>
            <div class="col-md-6">
                <div class="card mb-3">
                    <img src="<?= base_url('img/ekstrakurikuler/' . $e['foto_ekstrakurikuler']) ?>" alt="">
                    <div class="card-body">
                        <h5 class="card-title"><?= $e['ekstrakurikuler'] ?></h5>
                        <p class="card-text"><?= $e['isi'] ?></p>
                    </div>
                </div>
            </div>
        <?php endforeach; ?>
    </div>
</div>

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