</tr>
	</thead>
	<?php 
if ($this->orders && !empty($this->orders)) {
    foreach ($this->orders as $history) {
        ?>
	<tr>
		<td>
			<?php 
        echo JHTML::_('date', $history->created_on, $this->params->get('date_format', JText::_('DATE_FORMAT_LC1')));
        ?>
		</td>
		<td>
			<?php 
        echo JText::_($history->comment);
        ?>
		</td>
		<td>
			<?php 
        echo J2Html::getOrderStatusHtml($history->order_state_id);
        ?>
		</td>
	</tr>
	<?php 
    }
    ?>
	<?php 
}
?>

</table>
        ?>
		</td>
		<td>
			<a href="<?php 
        echo 'index.php?option=com_j2store&view=order&id=' . $order->j2store_order_id;
        ?>
">
			<?php 
        echo $order->invoice;
        ?>
			</a>
		</td>
		<td>
			<?php 
        echo $this->currency->format($order->order_total, $order->currency_code, $order->currency_value);
        ?>
		</td>
		<td>
			<?php 
        echo J2Html::getOrderStatusHtml($order->order_state_id);
        ?>
		</td>
	</tr>
	<?php 
    }
    ?>
	<?php 
}
?>

</table>