<?php echo $head; ?>
<h1 class="heading1">
	<span class="maintext"><i class="fa fa-briefcase"></i> <?php echo $heading_title; ?></span>
	<span class="subtext"></span>
</h1>

<div class="contentpanel">

	<?php foreach ($orders as $order) { ?>
		
	<div class="container-fluid mt20">
	    <div style="width: 49%; float: left; margin-bottom: 2px;"><b><?php echo $text_order; ?></b>
	    	#<?php echo $order[ 'order_id' ]; ?></div>
	    <div style="width: 49%; float: right; margin-bottom: 2px; text-align: right;">
	    	<b><?php echo $text_status; ?></b> <?php echo $order[ 'status' ]; ?></div>
	    <div class="content" style="clear: both; padding: 5px;">
	    	<div style="padding: 5px;">
	    		<table width="100%">
	    			<tr>
	    				<td><?php echo $text_date_added; ?> <?php echo $order[ 'date_added' ]; ?></td>
	    				<td><?php echo $text_customer; ?> <?php echo $order[ 'name' ]; ?></td>
	    				<td rowspan="2" style="text-align: right;"><?php echo $order[ 'button' ];?>
							<?php echo $this->getHookVar('order_history_'.$order['order_id'].'_additional_info'); ?>
						</td>
	    			</tr>
	    			<tr>
	    				<td><?php echo $text_products; ?> <?php echo $order[ 'products' ]; ?></td>
	    				<td><?php echo $text_total; ?> <?php echo $order[ 'total' ]; ?></td>
	    			</tr>
	    		</table>
	    	</div>
	    </div>
	</div>
	<?php } ?>

	<div class="container-fluid"><?php echo $pagination_bootstrap; ?></div>

	<div class="container-fluid">
		<div class="col-md-12 mt20 pull-left">
		    <a href="<?php echo $continue; ?>" class="btn btn-default mr10" title="<?php echo $button_back; ?>">
		    	<i class="fa fa-arrow-left"></i>
		    	<?php echo $button_back ?>
		    </a>
		</div>
	</div>

</div>

<script type="text/javascript">
	function viewOrder(order_id) {
		location = '<?php echo $order_url; ?>&order_id=' + order_id;
	}
</script>
<?php echo $footer; ?>