<?php
/**
 * Load admin view for error messages tab.
 *
 * @package miniorange-sms-order-notification-otp-verification/views
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
if ( ! $mowc_registered ) {
	echo '<section class="mowc-alert mowc-message border-b"  >
									<p class="flex-1">' . esc_html( mowc_( 'Login or Register to enable OTP Verification & SMS Notifications. ( Note: Contact us at' ) ) . ' <a style="cursor:pointer;" onClick="otpSupportOnClickWC(\'Hi, I could you please provide 10 free SMS transactions for testing purpose.\');"><u>' . esc_html( 'otpsupport@xecurify.com' ) . '</u></a> ' . esc_html( mowc_( 'to get one-time 10 Free SMS transactions for testing purpose)' ) ) . '</p>
									<button class="mowc-button inverted" id="mo_wc_login">' . esc_html( mowc_( 'Login / Register' ) ) . '</button>
								</section>';
} elseif ( ! $mowc_activated ) {
	echo '<section class="mowc-alert mowc-error">
									' . wp_kses_post( $mowc_activation_msg ) . '
								</section>';
} elseif ( ! $mowc_gatewayconfigured ) {
	echo '<section class="mowc-alert mowc-error">
									<h2>' . esc_html( mowc_( 'Please configure your SMS/Email Gateway to send OTPs.' ) ) . '</h2>
								</section>';
} elseif ( '0' === $mowc_sms_remaining && $mowc_registered ) {
		echo '<section class="mowc-alert mowc-message border-b" style="background-color:#fba36157;" >
						<p class="flex-1">' . esc_html( mowc_( 'You will face issues while sending the SMS OTPs. Contact us at' ) ) . ' <a style="cursor:pointer;" onClick="otpSupportOnClickWC(\'Hi, I could you please provide 10 free SMS transactions for testing purpose.\');"><u>' . esc_html( 'otpsupport@xecurify.com' ) . '</u></a> ' . esc_html( mowc_( 'to get one-time 10 Free SMS transactions for testing purpose)' ) ) . '</p>
					</section>';
}
