<?php
/**
 * @package com_spbooking
 * @author JoomShaper http://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2023 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
 */

// No Direct Access
defined('_JEXEC') or die('Resticted Aceess');

use Joomla\CMS\Layout\LayoutHelper;

$packages  = $displayData['packages'];
$columns   = $displayData['columns'];

?>

<?php if (!empty($packages))
{
	?>
	<?php foreach (array_chunk($packages, $columns) as $packages)
	{
		?>
		<div class="spbooking-row list-layout">
			<?php foreach ($packages as $package)
			{
				?>
				<div class="spbooking col-sm-12">
					<?php echo LayoutHelper::render('packages.list.item', array('package' => $package)); ?>
				</div>
			<?php }?>
		</div>
	<?php }?>
<?php }
