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

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

use Joomla\CMS\Helper\ModuleHelper;
use Joomla\CMS\Layout\LayoutHelper;

$modules = ModuleHelper::getModules('specialists-top-position');
?>

<div id="spmedical" class="spmedical view-spmedical-specialists spmedical-specialists-list">
	<!-- specialist top modules -->
	<?php foreach($modules as $module) { ?>
		<?php echo ModuleHelper::renderModule($module, array('style' => 'sp_xhtml')); ?>
	<?php } ?>

	<!-- spmedical-specialists-search -->
	<?php echo LayoutHelper::render('specialists.search', array('specialists' => $this->specialists)); ?>
	<!-- spmedical-specialists-search-result -->
	<div class="spmedical-specialists-search-result">
		<div class="spmedical-row">
			<?php echo LayoutHelper::render('specialists.filter', array('specialists' => $this->items, 'specialities' => $this->specialities, 'departments' => $this->departments)); ?>
			<?php echo LayoutHelper::render('specialists.items', array('specialists' => $this->items, 'columns' => $this->columns)); ?>
		</div>
	</div> <!-- //.spmedical-specialists-search-result -->
</div> <!-- /#spmedical -->

<?php if ($this->params->get('hide_pagination') == 0) { ?>
	<?php if ($this->pagination->pagesTotal > 1 ) { ?>
		<div class="pagination">
			<?php echo $this->pagination->getPagesLinks(); ?>
		</div>
	<?php } ?>
<?php } ?>


