<?php

use WpBookingPro\Utilities\Utility;
use WpBookingPro\Html\WpBookingProHtmlWooPanel as WpBookingProHtmlWooPanelAlias;
use WpBookingPro\Factory;
use WpBookingPro\Language\Text;

defined('_WPBOOKINGPRO_EXEC') or die;
extract($displayData);


WpBookingProHtmlWooPanelAlias::load_jquery_library('select2');

$doc = Factory::getDocument();
$id_by_name = "element_field_" . str_replace(array('[', ']'), '_', $name);
?>
    <div id="<?php echo (esc_attr($id_by_name)) ?>" class="field-gender">
        <select class="list-gender" name="<?php echo (esc_attr($name)); ?>">
            <option value=""><?php esc_html_e('Select Gender','wpbookingpro') ?></option>
            <option <?php echo($value == 'male' ? ' selected ' : '') ?> value="male"><?php esc_html_e('Male','wpbookingpro') ?></option>
            <option <?php echo($value == 'female' ? ' selected ' : '') ?> value="female"><?php esc_html_e('Female','wpbookingpro') ?></option>
        </select>
    </div>
<?php
$doc->addLessStyleSheet('admin_woopanel/app/layouts/WooBooking/form/field/gender/gender.less');
$doc->addScriptApplySelector('.field-gender', 'field_gender', array(
), 'admin_woopanel/app/layouts/WooBooking/form/field/gender/jquery.gender.js');
