<div>
<?php foreach ($this->view->menu['sections'] as $section): ?>

  <h1 class="sectionheading"><?php echo $section['name'] ?></h1>

  <?php if (! empty($section['item'])): ?>

    <table class="menutable">

    <tr>
      <th>Name</th>
      <th>Description</th>
      <th>Price</th>
      <?php if ($this->view->takeawayprice): ?>
      <th>Take Away Price</th>
      <?php endif; ?>
    </tr>

    <?php foreach ($section['item'] as $item): ?>
      <tr>
        <td><?php echo $item['name'] ?></td>
        <td><?php echo $item['description'] ?></td>
        <td><?php echo number_format($item['price'], 2) ?></td>
        <?php if ($this->view->takeawayprice): ?>
        <td><?php echo number_format($item['price_takeaway'], 2) ?></td>
        <?php endif; ?>
      </tr>

    <?php endforeach; ?>

  </table>


  <?php endif; ?>


<?php endforeach; ?>


</div>
