<?php
/**
 * Show error messages
 *
 * @author     techlabpro01
 * @package    classified-listing/Templates
 * @version    1.0.0
 *
 * @var array $messages
 */

if (!defined('ABSPATH')) {
    exit;
}

if (empty($messages)) {
    return;
}

?>
<div class="rtcl-message rtcl-error alert alert-danger" role="alert">
    <?php foreach ($messages as $message) : ?>
        <p><?php echo wp_kses_post($message); ?></p>
    <?php endforeach; ?>
</div>
