<?php
/**
 * @var string $error_message
 * @var array  $reasons
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
?>

<p class="fi-ksef-status error">
	<span class="dashicons dashicons-dismiss"></span>
	<span><?php echo esc_html( $error_message ); ?></span>
</p>
<?php if ( ! empty( $reasons ) ): ?>
	<ul>
		<?php
		foreach ( $reasons as $reason ):?>
			<li> <?php echo wp_kses( $reason, [ 'a' => [
					'href'  => true,
					'target' => true,
				] ] ); ?></li>
		<?php
		endforeach;
		?>
	</ul>
<?php endif; ?>
