<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?>
<div id="content"><?php echo $content_top; ?>
  <div class="breadcrumb">
    <?php foreach ($breadcrumbs as $breadcrumb) { ?>
    <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>
    <?php } ?>
  </div>
  <h1><?php echo $heading_title; ?></h1>
  <table class="table table-action">
    <thead>
      <tr>
        <th class="t-medium" colspan="2"><?php echo $text_return_detail; ?></th>
      </tr>
    </thead>
    <tbody>
      <tr>
	    <td class="fix"></td>
		<td class="info_responsive"><b><?php echo $text_return_detail; ?></b></td>
        <td class="left"><b><?php echo $text_return_id; ?></b> #<?php echo $return_id; ?><br />
          <b><?php echo $text_date_added; ?></b> <?php echo $date_added; ?></td>
        <td class="left"><b><?php echo $text_order_id; ?></b> #<?php echo $order_id; ?><br />
          <b><?php echo $text_date_ordered; ?></b> <?php echo $date_ordered; ?></td>
		<td class="fix-margin"></td>
      </tr>	  
    </tbody>
  </table>
  <h2><?php echo $text_product; ?></h2>
  <table class="table table-action">
    <thead>
      <tr>
        <th class="t-medium"><?php echo $column_product; ?></th>
        <th class="t-medium"><?php echo $column_model; ?></th>
        <th class="t-medium"><?php echo $column_quantity; ?></th>
      </tr>
    </thead>
    <tbody>
      <tr>
	    <td class="fix"></td>
	    <td class="info_responsive"><b><?php echo $column_product; ?></b></td>
        <td class="left"><?php echo $product; ?></td>
		<td class="info_responsive"><b><?php echo $column_model; ?></b></td>
        <td class="left"><?php echo $model; ?></td>
		<td class="info_responsive"><b><?php echo $column_quantity; ?></b></td>
        <td class="right"><?php echo $quantity; ?></td>
		<td class="fix-margin"></td>
      </tr>
    </tbody>
  </table>
  <table class="table table-action">
    <thead>
      <tr>
        <th class="t-medium"><?php echo $column_reason; ?></th>
        <th class="t-medium"><?php echo $column_opened; ?></th>
        <th class="t-medium"><?php echo $column_action; ?></th>
      </tr>
    </thead>
    <tbody>
      <tr>
	    <td class="fix"></td>
		<td class="info_responsive"><b><?php echo $column_reason; ?></b></td>
        <td class="left"><?php echo $reason; ?></td>
		<td class="info_responsive"><b><?php echo $column_opened; ?></b></td>
        <td class="left"><?php echo $opened; ?></td>
		<td class="info_responsive"><b><?php echo $column_action; ?></b></td>
        <td class="left"><?php echo $action; ?></td>
		<td class="fix-margin"></td>
      </tr>
    </tbody>
  </table>
  <?php if ($comment) { ?>
  <table class="table table-action">
    <thead>
      <tr>
        <th  class="t-medium"><?php echo $text_comment; ?></th>
      </tr>
    </thead>
    <tbody>
      <tr>
	    <td class="fix"></td>
		<td class="info_responsive"><b><?php echo $text_comment; ?></b></td>
        <td class="left"><?php echo $comment; ?></td>
		<td class="fix-margin"></td>
      </tr>
    </tbody>
  </table>
  <?php } ?>
  <?php if ($histories) { ?>
  <h2><?php echo $text_history; ?></h2>
  <table class="table table-action">
    <thead>
      <tr>
        <th class="t-medium"><?php echo $column_date_added; ?></th>
        <th class="t-medium"><?php echo $column_status; ?></th>
        <th class="t-medium"><?php echo $column_comment; ?></th>
      </tr>
    </thead>
    <tbody>
      <?php foreach ($histories as $history) { ?>
      <tr>
	    <td class="fix"></td>
		<td class="info_responsive"><b><?php echo $column_date_added; ?></b></td>
        <td class="left"><?php echo $history['date_added']; ?></td>
		<td class="info_responsive"><b><?php echo $column_status; ?></b></td>
        <td class="left"><?php echo $history['status']; ?></td>
		<td class="info_responsive"><b><?php echo $column_comment; ?></b></td>
        <td class="left"><?php echo $history['comment']; ?></td>
		<td class="fix-margin"></td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
  <?php } ?>
  <div class="buttons">
    <div class="right"><a href="<?php echo $continue; ?>" class="button"><?php echo $button_continue; ?></a></div>
  </div>
  <?php echo $content_bottom; ?></div>
<?php echo $footer; ?>