<?php
/**
 * Loads admin view for OTP Settings functionality.
 *
 * @package miniorange-sms-order-notification-otp-verification/controllers/
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

if ( ! current_user_can( 'manage_options' ) ) {
	wp_die( esc_html__( 'You do not have sufficient permissions to access this page.', 'miniorange-sms-order-notification-otp-verification' ) );
}

use WCSMSOTP\Helper\MoUtility;

$mowc_nonce                 = $mowc_admin_handler->get_nonce_value();
$mowc_show_dropdown_on_form = get_mo_wc_option( 'show_dropdown_on_form' ) ? 'checked' : '';

$mowc_otp_settings_file = MOV_WC_DIR . 'views/mowcotpsettings.php';
if ( ! MoUtility::mo_require_file( $mowc_otp_settings_file, MOV_WC_DIR ) ) {
	return;
}
require_once $mowc_otp_settings_file;
