<table class="list">
  <thead>
    <tr>
      <td class="right"><b><?php echo $column_order_id; ?></b></td>
      <td class="left"><b><?php echo $column_customer; ?></b></td>
      <td class="right"><b><?php echo $column_amount; ?></b></td>
      <td class="left"><b><?php echo $column_date_added; ?></b></td>
    </tr>
  </thead>
  <tbody>
    <?php if ($histories) { ?>
    <?php foreach ($histories as $history) { ?>
    <tr>
      <td class="right"><?php echo $history['order_id']; ?></td>
      <td class="left"><?php echo $history['customer']; ?></td>
      <td class="right"><?php echo $history['amount']; ?></td>
      <td class="left"><?php echo $history['date_added']; ?></td>
    </tr>
    <?php } ?>
    <?php } else { ?>
    <tr>
      <td class="center" colspan="4"><?php echo $text_no_results; ?></td>
    </tr>
    <?php } ?>
  </tbody>
</table>
<div class="pagination"><?php echo $pagination; ?></div>
