<?php if (!empty($flashMessages)): ?>
    <div class="<?= isset($adminPage) ? 'admin-flash-wrap' : 'container flash-wrap' ?>" aria-live="polite">
        <?php foreach ($flashMessages as $message): ?>
            <div class="flash flash-<?= e($message['type']) ?>">
                <span><?= e($message['message']) ?></span>
                <button type="button" class="flash-close" aria-label="Dismiss message">&times;</button>
            </div>
        <?php endforeach; ?>
    </div>
<?php endif; ?>

