<?php


defined('_WPBOOKINGPRO_EXEC') or die;


extract($displayData);
?>

<tr
	class="subform-repeatable-group subform-repeatable-group-<?php wpbookingpro_render_content($unique_subform_id); ?>"
	data-base-name="<?php wpbookingpro_render_content($basegroup); ?>"
	data-group="<?php wpbookingpro_render_content($group); ?>"
>
	<?php foreach ($form->getFieldsets() as $fieldset) : ?>
	<td class="<?php if (!empty($fieldset->class)){ wpbookingpro_render_content($fieldset->class); } ?>" data-column="<?php wpbookingpro_render_content($fieldset->name); ?>">
		<?php foreach ($form->getFieldset($fieldset->name) as $field) : ?>
			<?php $field->renderField(); ?>
		<?php endforeach; ?>
	</td>
	<?php endforeach; ?>
	<?php if (!empty($buttons)) : ?>
	<td>
		<div class="btn-group">
			<?php if (!empty($buttons['add'])) : ?>
				<a class="btn btn-mini button btn-success group-add group-add-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_ADD'); ?>">
					<span class="icon-plus" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
			<?php if (!empty($buttons['remove'])) : ?>
				<a class="btn btn-mini button btn-danger group-remove group-remove-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_REMOVE'); ?>">
					<span class="icon-minus" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
			<?php if (!empty($buttons['move'])) : ?>
				<a class="btn btn-mini button btn-primary group-move group-move-<?php wpbookingpro_render_content($unique_subform_id); ?>" aria-label="<?php echo WoobookingText::_('JGLOBAL_FIELD_MOVE'); ?>">
					<span class="icon-move" aria-hidden="true"></span>
				</a>
			<?php endif; ?>
		</div>
	</td>
	<?php endif; ?>
</tr>
