<?php Block::put('breadcrumb') ?>
    <ul>
        <li><a href="<?= Backend::url('winter/notify/notifications') ?>"><?= e(trans('winter.notify::lang.notifications.menu_label')) ?></a></li>
        <li><?= e(trans($this->pageTitle)) ?></li>
    </ul>
<?php Block::endPut() ?>

<?php if (!$this->fatalError): ?>

    <div class="layout fancy-layout">
        <?= Form::open([
            'class' => 'layout',
            'data-change-monitor' => 'true',
            'data-window-close-confirm' => e(trans('winter.notify::lang.notifications.close_confirm')),
            'id' => 'post-form'
        ]) ?>
            <input type="hidden" name="event_alias" value="<?= $this->eventAlias ?>" />

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

        <?= Form::close() ?>
    </div>

<?php else: ?>

    <div class="padded-container">
        <p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
        <p><a href="<?= Backend::url('winter/notify/notifications') ?>" class="btn btn-default"><?= e(trans('winter.notify::lang.notifications.return')) ?></a></p>
    </div>

<?php endif ?>
