<?= $this->layout('_layout', ['title' => $title]); ?>

<?= $this->layout('_layout', ['title' => $title]); ?>

<main class="main">
    <?= $this->insert('includes/aside_info') ?>
    <div class="content">
        <div class="h2-title h2-title-content flex-s-c">
            <span>Notice: <?= $post['title'] ?></span>
        </div>

        <div class="my-4">
            <section class="information">
                <h1>
                    <?= $post['message'] ?>
                </h1>
                <p class="page-date">Posted by: <?= $post['author'] ?> | <?= $post['date'] ?></p>
            </section>
        </div>
        <div class="my-4"></div>
        <?php if (__login()) : ?>
            <?= $this->insert('partials/post/comments', ['comments' => $comments, 'active' => $post['comment'], "id_notice" => $post['id']]); ?>
        <?php else : ?>
            <p class="warning">You must be logged in to comment</p>
        <?php endif; ?>
    </div>
</main>
