<?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_Html::_('jquery.framework'); ?>
				<?php WpBookingPro_Html::_('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 wpbookingpro_render_content($dataShowOn); ?>>
				<?php wpbookingpro_render_content($field->input); ?>
			</div>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>
