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

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
use WCSMSOTP\Objects\TabDetails;
use WCSMSOTP\Objects\Tabs;

$mowc_tab_details    = TabDetails::instance();
$mowc_form_notif_tab = $mowc_tab_details->tab_details[ Tabs::WOOCOMERCE_NOTIF ];

echo '
                <div class="mowc-header">
		            <p class="mowc-heading flex-1">' . esc_html( mowc_( 'Configure Forms' ) ) . '</p>
                    <input  name="save" id="ov_settings_button_config" 
                        class="mowc-button primary" ' . esc_attr( $mowc_disabled ) . ' 
                        value="' . esc_attr( mowc_( 'Save Settings' ) ) . '" type="submit">
	            </div>
                <div class="mowc-alert" style="background-color:#EFF6FF; justify-content:flex-start; font-weight:600; border: 1px solid #BFDBFE; border-radius: 4px; margin: 1rem 1.5rem;">
                    <span class="dashicons dashicons-info" style="color: #1261d8; font-size: 20px; width: 20px; height: 20px; margin-right: 0.5rem; flex-shrink: 0;"></span>
                    <span style="color: #1261d8;"><b>' . esc_html( mowc_( 'Note:' ) ) . '</b> ' . esc_html( mowc_( 'If your form is not listed the the below section, you can enable OTP verification using our' ) ) . ' <a href="' . esc_url( 'https://plugins.miniorange.com/wordpress-otp-verification' ) . '" target="_blank" rel="noopener noreferrer" style="color: #1261d8; text-decoration: underline;">' . esc_html( mowc_( 'miniOrange OTP Verification Plugin' ) ) . '</a> ' . esc_html( mowc_( 'Check out our plugin page for more details.' ) ) . '</span>
                </div>
                <div id="configured_mo_forms">';
					mowc_show_wc_configured_form_details( $mowc_controller, $mowc_disabled );
echo '		    </div>';
