<?php
use WpBookingPro\Factory;
defined('_WPBOOKINGPRO_EXEC') or die;
extract($displayData);
$doc = Factory::getDocument();
$id_by_name = "element_field_". $name;
?>
    <div id="<?php echo (esc_attr($id_by_name)) ?>" class="<?php echo (esc_attr($class)); ?> field-uploadsystem hide-option">
		<?php if ($enable_upload) { ?>
            <input type="file" class="upload upload-file" name="file_upload" />
            <a href="https://demo.retreat.club/how-to-integrate-google-calendar-to-wordpress-booking" target="_blank">
                <?php esc_html_e('Get client_secret.json','wpbookingpro')?>
            </a>
		<?php } else { ?>
            <div class="btn-browser-media"></div>
		<?php } ?>
        <input type="hidden" name="<?php echo (esc_attr($name)) ?>">
    </div>
<?php
$doc->addScriptApplySelector('.field-uploadsystem','field_uploadsystem',array(
    "input_name"=>  $name,
    "value"=> $value
),'admin/app/layouts/WooBooking/form/field/uploadsystem/uploadsystem.jquery.js');