<?php if (!isset($redirect)) { ?>
<div class="checkout-product">
  <table class="table table-action">
    <thead>
      <tr>
		  <th class="t-medium"><?php echo $column_name; ?></th>
		  <th class="t-medium"><?php echo $column_model; ?></th>
		  <th class="t-medium"><?php echo $column_quantity; ?></th>
		  <th class="t-medium"><?php echo $column_price; ?></th>
		  <th class="t-medium"><?php echo $column_total; ?></th>
      </tr>
    </thead>
  <tbody>
  <?php foreach ($products as $product) { ?>
    <tr>
	  <td class="fix"></td>
	   <td class="info_responsive"><b><?php echo $column_name; ?></b></td>
	   <td><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a>
          <?php foreach ($product['option'] as $option) { ?>
          <br />
          &nbsp;<small> - <?php echo $option['name']; ?>: <?php echo $option['value']; ?></small>
          <?php } ?></td>
       
	   <td class="info_responsive"><b><?php echo $column_model; ?></b></td>
	   <td><?php echo $product['model']; ?></td>
       <td class="info_responsive"><b><?php echo $column_quantity; ?></b></td>
	   <td><?php echo $product['quantity']; ?></td>
       <td class="info_responsive"><b><?php echo $column_price; ?></b></td>
	   <td ><?php echo $product['price']; ?></td>
       <td class="info_responsive"><b><?php echo $column_total; ?></b></td>
	   <td><?php echo $product['total']; ?></td>	   
	   <td class="fix-margin"></td>
	</tr>
	<?php } ?>
	<?php foreach ($vouchers as $voucher) { ?>
      <tr>
        <td><?php echo $voucher['description']; ?></td>
        <td></td>
        <td>1</td>
        <td><?php echo $voucher['amount']; ?></td>
        <td><?php echo $voucher['amount']; ?></td>
      </tr>
      <?php } ?>
 
  <?php foreach ($totals as $total) { ?>
      <tr>
	    <td class="info_responsive"><b><?php echo $total['title']; ?></b></td>
        <td colspan="4" style="text-align:right;"><b><?php echo $total['title']; ?>: </td>
        <td style="text-align:right;"> <?php echo $total['text']; ?></td>
      </tr>
      <?php } ?>
 
 </tbody>

     
</table>
<div class="payment"><?php echo $payment; ?></div>
<?php } else { ?>
<script type="text/javascript"><!--
location = '<?php echo $redirect; ?>';
//--></script> 
<?php } ?>