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

<?= $this->section('main') ?>
    <h2 class="text-2xl font-semibold mb-6"><?= lang('Admin/Events.editEvent') ?></h2>
    <?= $this->include('backend/layouts/_notifications') ?>

    <?= form_open_multipart(route_to('admin.events.update', $event->id)) ?>
        <div class="bg-white p-6 rounded-lg shadow-md">
            <?= $this->include('backend/events/_form_main') ?>
        </div>
        <div class="mt-6 flex justify-end gap-4">
            <a href="<?= route_to('admin.events.show', $event->id) ?>" class="bg-gray-200 text-gray-800 px-4 py-2 rounded-md hover:bg-gray-300"><?= lang('Admin/Events.btnCancel') ?></a>
            <button type="submit" class="bg-indigo-600 text-white font-bold px-4 py-2 rounded-md hover:bg-indigo-700"><?= lang('Admin/Events.btnUpdate') ?></button>
        </div>
    <?= form_close() ?>
<?= $this->endSection() ?>