<?php
/**
 * @version     1.4.6
 * @package     sellacious
 *
 * @copyright   Copyright (C) 2012-2017 Bhartiy Web Technologies. All rights reserved.
 * @license     SPL Sellacious Private License; see http://www.sellacious.com/spl.html
 * @author      Izhar Aazmi <info@bhartiy.com> - http://www.bhartiy.com
 */
// no direct access
defined('_JEXEC') or die;

$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn  = $this->escape($this->state->get('list.direction'));

$multi_seller = $this->helper->config->get('multi_seller', 0);
?>
<tr role="row">
	<th style="width: 10px;">
		<label class="checkbox style-0">
			<input type="checkbox" name="checkall-toggle" value="" class="hasTooltip checkbox style-3"
				   title="<?php echo JHtml::tooltipText('JGLOBAL_CHECK_ALL') ?>" onclick="Joomla.checkAll(this);"/>
			<span></span>
		</label>
	</th>
	<th class="nowrap" width="1%">
		<?php echo JHtml::_('searchtools.sort', 'JSTATUS', 'a.state', $listDirn, $listOrder); ?>
	</th>
	<th class="nowrap" style="width: 50px;">
		<?php echo JText::_('COM_SELLACIOUS_PRODUCT_HEADING_IMAGE'); ?>
	</th>
	<th class="nowrap">
		<?php echo JHtml::_('searchtools.sort', 'JGLOBAL_TITLE', 'a.title', $listDirn, $listOrder); ?>
	</th>
	<th class="text-center nowrap">
	</th>
	<?php if ($multi_seller): ?>
	<th class="text-center nowrap">
		<?php echo JHtml::_('searchtools.sort', 'COM_SELLACIOUS_PRODUCT_HEADING_SELLER_COMPANY', 'p.seller_company', $listDirn, $listOrder); ?>
	</th>
	<?php endif; ?>
	<th class="text-center nowrap" style="width: 100px;">
		<?php echo JHtml::_('searchtools.sort', 'COM_SELLACIOUS_PRODUCT_HEADING_SALES_PRICE', 'p.product_price', $listDirn, $listOrder); ?>
	</th>
	<th class="text-center nowrap" style="width: 130px;">
		<?php echo JHtml::_('searchtools.sort', 'COM_SELLACIOUS_PRODUCT_HEADING_LISTING_START', 'l.publish_up', $listDirn, $listOrder); ?>
	</th>
	<?php if ($multi_seller): ?>
	<th class="text-center nowrap" style="width: 130px;">
		<?php echo JHtml::_('searchtools.sort', 'COM_SELLACIOUS_PRODUCT_HEADING_LISTING_EXPIRY', 'l.publish_down', $listDirn, $listOrder); ?>
	</th>
	<?php endif; ?>
	<th class="text-center nowrap" style="width: 130px;">
		<?php echo JHtml::_('searchtools.sort', 'COM_SELLACIOUS_PRODUCT_HEADING_STOCK', 'psx.stock', $listDirn, $listOrder); ?>
	</th>
	<th class="text-center nowrap" style="width: 90px;">
		<?php echo JText::_('COM_SELLACIOUS_PRODUCT_HEADING_RATINGS'); ?>
	</th>
	<th class="text-center nowrap" style="width: 90px;">
		<?php echo JText::_('COM_SELLACIOUS_PRODUCT_HEADING_ORDER_COUNT') ?>
	</th>
	<th class="text-center nowrap">
	</th>
	<th class="nowrap hidden-phone" style="width: 1%;">
		<?php echo JHtml::_('searchtools.sort', 'JGRID_HEADING_ID', 'a.id', $listDirn, $listOrder); ?>
	</th>
</tr>
