<?php

use WpBookingHotel\Utilities\Utility;
use WpBookingHotel\Html\WpBookingHotelHtmlBackend as WpBookingHotelHtmlBackendAlias;
use WpBookingHotel\Factory;
use WpBookingHotel\Language\Text;

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


WpBookingHotelHtmlBackendAlias::load_jquery_library('dateselect');

$doc = Factory::getDocument();
$id_by_name = "element_field_". $name;
?>
    <div id="<?php echo (esc_attr($id_by_name)) ?>" class="field-birthday">
        <div class="row">
            <div class="col-md-12">
                <div class="input-group">
                    <input type="text" class="form-control" id="date-<?php echo (esc_attr($name)); ?>" name="<?php echo (esc_attr($name)); ?>"
                           value="<?php echo(esc_attr($value)) ?>"  data-select="date" placeholder="<?php esc_attr_e('Birthday','wpbookinghotel')?>"/>
                    <span class="input-group-btn">
                    <button class="btn btn-primary" type="button" data-toggle="select"><i class="fa fa-calendar"></i></button>
                </span>
                </div>
            </div>
        </div>
    </div>
<?php
$doc->addScriptApplySelector('.field-birthday', 'field_birthday', array(
    "input_name" => $name,
), 'admin/app/layouts/WooBooking/form/field/birthday/jquery.birthday.js');
