<h1>Exchanges List</h1>

<table>
  <thead>
    <tr>
      <th>Id</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($exchanges as $exchange): ?>
    <tr>
      <td><a href="<?php echo url_for('exchange/edit?id='.$exchange->getId()) ?>"><?php echo $exchange->getId() ?></a></td>
      <td><?php echo $exchange->getCreatedAt() ?></td>
      <td><?php echo $exchange->getUpdatedAt() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('exchange/new') ?>">New</a>
