<?php

use WpBookingEvent\Factory;
use WpBookingEvent\Mvc\Model\Model;
use WpBookingEvent\Utilities\Utility;
use WpBookingEvent\Html\WpBookingEventHtmlBackend as WpBookingEventHtmlBackendAlias;
use WpBookingEvent\Language\Text;
defined('_WPBOOKINGEVENT_EXEC') or die;
extract($displayData);
WpBookingEventHtmlBackendAlias::load_jquery_library('select2');
$id_by_name = "element_field_". $name;
$data = $displayData['field']->getForm()->getData();

?>
    <div id="<?php esc_attr_e($id_by_name) ?>" class="<?php esc_attr_e($class); ?> field-bookingstyle">
        <select class="list-bookingstyle" name="<?php esc_attr_e($name); ?>" >
            <option value=""><?php esc_html_e('Select booking style','wpbookingevent') ?></option>
            <option <?php echo (($value == "in_line") ? ' selected ' : null) ?> value="in_line">
                <?php esc_html_e('Booking in line','wpbookingevent') ?>
            </option>
            <option <?php echo (($value == "integrate") ? ' selected ' : null) ?> value="integrate" disabled >
                <?php esc_html_e('Integrate','wpbookingevent') ?>
            </option>
        </select>
    </div>
<?php
$doc = Factory::getDocument();
$doc->addLessStyleSheet('admin/app/layouts/WooBooking/form/field/bookingstyle/bookingstyle.less');
$doc->addScriptApplySelector('.field-bookingstyle','field_bookingstyle',array(
),'admin/app/layouts/WooBooking/form/field/bookingstyle/bookingstyle.jquery.js');