<?php
/**
 * Email Mask
 *
 * Email mask select.
 *
 * @since   7.4
 *
 * @package WPrequal
 */

namespace WPrequal;

if ( ! defined( 'ABSPATH' ) ) {
	die( 'Access denied!!' );
}

$options = array(
	'no'  => 'Select One',
	'yes' => 'aaaa@aaa.aaa'
); ?>

<tr>
	<th><label><?php esc_html_e( 'Email Mask', 'wprequal' ); ?></label></th>

	<td>

		<select name="input[<?php echo esc_attr( $input['key'] ); ?>][email_mask]">
			<?php foreach ( $options as $value => $label ) { ?>
				<?php $selected = ( isset( $input['email_mask'] ) && $input['email_mask'] === $value ) ? 'selected' : ''; ?>
				<option value="<?php echo esc_attr( $value ); ?>" <?php echo esc_attr( $selected ); ?>><?php echo esc_html( $label ); ?></option>
			<?php } ?>
		</select>

	</td>

</tr>