<table class="govuk-table">
  <caption class="govuk-table__caption govuk-table__caption--m"><%= title %></caption>
  <thead class="govuk-table__head">
    <tr class="govuk-table__row">
      <th scope="col" class="govuk-table__header">Log reference</th>
      <th scope="col" class="govuk-table__header">Postcode</th>
      <th scope="col" class="govuk-table__header">Tenant code</th>
      <th scope="col" class="govuk-table__header"><%= date_title %></th>
    </tr>
  </thead>
  <tbody class="govuk-table__body">
    <% case_logs.map do |log| %>
    <tr class="govuk-table__row">
      <th scope="row" class="govuk-table__header">
        <%= link_to log.id, case_log_path(log), class: "govuk-link" %>
      </th>
      <td class="govuk-table__cell govuk-table__cell">
        <%= log.property_postcode %>
      </td>
      <td class="govuk-table__cell govuk-table__cell">
        <%= log.tenant_code %>
      </td>
      <td id="last-changed" class="govuk-table__cell">
        <%= log.updated_at.strftime("%d %b %Y") %>
      </td>
    </tr>
    <% end %>
  </tbody>
</table>