<?php

/**
 * @var string   $message
 * @var string   $alert
 * @var string[] $errors
 */

?>
<?php if (!empty($message)): ?>
    <p class="box info" id="box-info"><?php echo $message ?></p>
<?php endif; ?>

<?php if (!empty($alert)): ?>
    <p class="box alert" id="box-info"><?php echo $alert ?></p>
<?php endif; ?>

<?php if (!empty($errors)): ?>
    <ul class="box error" id="box-error">
        <?php foreach ($errors as $error): ?>
            <li><?php echo $error ?></li>
        <?php endforeach; ?>
    </ul>
<?php endif; ?>
