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

<?= $this->section('content') ?>
<div class="container pt-100 pb-100">
    <div class="row justify-content-center">
        <div class="col-lg-10">
            <div class="card shadow border-0">
                <div class="card-header bg-success text-white">
                    <h4 class="mb-0">Edit Sejarah Sekolah</h4>
                </div>
                <div class="card-body p-4">
                    <form action="<?= base_url('admin/profil/update') ?>" method="post">
                        <?= csrf_field() ?>
                        <input type="hidden" name="id_halaman" value="<?= $halaman['id_halaman'] ?>">
                        <input type="hidden" name="slug" value="sejarah">

                        <div class="form-group mb-4">
                            <label class="fw-bold">Judul Halaman</label>
                            <input type="text" name="judul_halaman" class="form-control" value="<?= $halaman['judul_halaman'] ?>">
                        </div>

                        <div class="form-group mb-4">
                            <label class="fw-bold text-success">Masa Awal Berdiri</label>
                            <textarea name="sejarah_awal" class="form-control" rows="6"><?= $halaman['sejarah_awal'] ?></textarea>
                        </div>

                        <div class="form-group mb-4">
                            <label class="fw-bold text-success">Masa Perkembangan</label>
                            <textarea name="sejarah_perkembangan" class="form-control" rows="6"><?= $halaman['sejarah_perkembangan'] ?></textarea>
                        </div>

                        <div class="form-group mb-4">
                            <label class="fw-bold text-success">Prestasi & Capaian</label>
                            <textarea name="sejarah_prestasi" class="form-control" rows="6"><?= $halaman['sejarah_prestasi'] ?></textarea>
                        </div>

                        <button type="submit" class="btn btn-success btn-lg px-5">UPDATE SEJARAH</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<?= $this->endSection() ?>