<?= $this->extend('frontend/layouts/main') ?>

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

<?= $this->section('mainContent') ?>
<div class="max-w-4xl mx-auto bg-white p-8 rounded-lg shadow-md">
    <h1 class="text-3xl font-bold mb-2 text-gray-800"><?= esc($event->name) ?></h1>
    <h2 class="text-xl text-gray-600 mb-6">Terms & Conditions</h2>

    <div class="prose max-w-none">
        <!-- Tampilkan HTML dari database. Pastikan Anda membersihkannya saat menyimpan! -->
        <?= $event->terms_conditions ?>
    </div>
</div>
<?= $this->endSection() ?>