<?php
/**
 * Load admin view for Default Registration form.
 *
 * @package miniorange-otp-verification/views/forms
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
echo '	<div class="mo_otp_form" id="' . esc_attr( get_mo_class( $handler ) ) . '"><input type="checkbox" ' . esc_attr( $disabled ) . ' id="wp_default" class="app_enable" data-toggle="wp_default_options" 
                name="mo_customer_validation_wp_default_enable" value="1"
			' . esc_attr( $default_registration ) . ' /><strong>' . esc_html( $form_name ) . '</strong>';

echo '		<div class="mo_registration_help_desc" id="wp_default_options">';

echo '
                <div>
					<input type="checkbox" ' . esc_attr( $disabled ) . ' ' . esc_attr( $auto_activate_users ) . ' class="app_enable" name="mo_customer_validation_wp_reg_auto_activate" 
					    value="1" type="checkbox"><b>' . esc_html__( 'Auto Activate Users.', 'miniorange-otp-verification' ) . '</b>';


				echo '           <br/>
				</div>
				<b>' . esc_html__( 'Choose between Phone or Email Verification', 'miniorange-otp-verification' ) . '</b>
				<div>
					<input type="radio" ' . esc_attr( $disabled ) . ' id="wp_default_phone" class="app_enable" data-toggle="wp_default_phone_options" name="mo_customer_validation_wp_default_enable_type" value="' . esc_attr( $wpreg_phone_type ) . '"
						' . ( esc_attr( $wp_default_type ) === esc_attr( $wpreg_phone_type ) ? 'checked' : '' ) . '/>
						<strong>' . esc_html__( 'Enable Phone Verification', 'miniorange-otp-verification' ) . '</strong>
				</div>
				<div ' . ( esc_attr( $wp_default_type ) !== esc_attr( $wpreg_phone_type ) ? 'style=display:none' : '' ) . ' class="mo_registration_help_desc_internal" 
						id="wp_default_phone_options" >
						<input type="checkbox" ' . esc_attr( $disabled ) . ' name="mo_customer_validation_wp_reg_restrict_duplicates" value="1"
								' . esc_attr( $wp_handle_reg_duplicates ) . ' /><strong>' . esc_html__( 'Do not allow users to use the same phone number for multiple accounts.', 'miniorange-otp-verification' ) . '</strong>
				</div>
				<div>
					<input type="radio" ' . esc_attr( $disabled ) . ' id="wp_default_email" class="app_enable" name="mo_customer_validation_wp_default_enable_type" value="' . esc_attr( $wpreg_email_type ) . '"
						' . ( esc_attr( $wp_default_type ) === esc_attr( $wpreg_email_type ) ? 'checked' : '' ) . '/>
						<strong>' . esc_html__( 'Enable Email Verification', 'miniorange-otp-verification' ) . '</strong>
				</div>
				<div>
					<input type="radio" ' . esc_attr( $disabled ) . ' id="wp_default_both" class="app_enable" name="mo_customer_validation_wp_default_enable_type" 
						value="' . esc_attr( $wpreg_both_type ) . '" data-toggle="wp_default_both_options"
						' . ( esc_attr( $wp_default_type ) === esc_attr( $wpreg_both_type ) ? 'checked' : '' ) . '/>
						<strong>' . esc_html__( 'Let the user choose', 'miniorange-otp-verification' ) . '</strong>';

							echo '			</div>
				<div ' . ( esc_attr( $wp_default_type ) !== esc_attr( $wpreg_both_type ) ? 'style=display:none' : '' ) . ' class="mo_registration_help_desc_internal" 
						id="wp_default_both_options" >
						<input type="checkbox" ' . esc_attr( $disabled ) . ' name="mo_customer_validation_wp_reg_restrict_duplicates" value="1"
								' . esc_attr( $wp_handle_reg_duplicates ) . ' /><strong>' . esc_html__( 'Do not allow users to use the same phone number for multiple accounts.', 'miniorange-otp-verification' ) . '</strong>
				</div>
			</div>
		</div>';
