<?php if ($flash = flash('error')): ?>
    <div class="box">
        <div>
            <div class="callout callout-danger">
                <h4>Erro!</h4>
                <p><?= (is_array($flash) ? implode('<br>', $flash) : nl2br($flash)) ?></p>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php if ($flash = flash('warning')): ?>
    <div class="box">
        <div>
            <div class="callout callout-warning">
                <h4>Aviso!</h4>
                <p><?= (is_array($flash) ? implode('<br>', $flash) : nl2br($flash)) ?></p>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php if ($flash = flash('success')): ?>
    <div class="box">
        <div>
            <div class="callout callout-success">
                <h4>Sucesso!</h4>
                <p><?= (is_array($flash) ? implode('<br>', $flash) : nl2br($flash)) ?></p>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php if ($flash = flash('info')): ?>
    <div class="box">
        <div>
            <div class="callout callout-info">
                <h4>Informação!</h4>
                <p><?= (is_array($flash) ? implode('<br>', $flash) : nl2br($flash)) ?></p>
            </div>
        </div>
    </div>
<?php endif; ?>
<?php if ($flash = flash('misc')): ?>
    <div class="box">
        <div>
            <div class="callout callout-misc">
                <h4>Atenção!</h4>
                <p><?= (is_array($flash) ? implode('<br>', $flash) : nl2br($flash)) ?></p>
            </div>
        </div>
    </div>
<?php endif; ?>