<?php

defined('_WPBOOKINGPRO_EXEC') or die;
$data = $displayData;

$filters = $data['view']->filterForm->getGroup('filter');
?>
<?php if ($filters) : ?>
	<?php foreach ($filters as $fieldName => $field) : ?>
		<?php if ($fieldName !== 'filter_search') : ?>
			<?php $dataShowOn = ''; ?>
			<?php if ($field->showon) : ?>
				<?php WpBookingPro_HtmlFrontend::_('jquery.framework'); ?>
				<?php WpBookingPro_HtmlFrontend::_('script', 'jui/cms.js',
					array('version' => 'auto', 'relative' => true)); ?>
				<?php $dataShowOn = " data-showon='" . json_encode(FormHelper::parseShowOnConditions($field->showon,
						$field->formControl, $field->group)) . "'"; ?>
			<?php endif; ?>
            <div class="js-stools-field-filter"<?php echo($dataShowOn); ?>>
				<?php echo($field->input); ?>
			</div>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>
