<% copies.times do |copy_index| %>
  <div class="page">
    <% has_logo = local_assigns[:logo] %>
    <table class="heading-table">
      <tr>
        <td>&nbsp;</td>
        <td class="do-not-copy-warning"><strong><%= t '.do_not_copy_warning' %></strong></td>
      </tr>
      <tr>
        <td>
          <% if has_logo %>
            <div class="logo">
              <%= render "blank_contracts/logo", logo: logo %>
            </div>
          <% end %>
        </td>
        <td>
          <img class="qr-code" src="<%= qr_codes[copy_index] %>" />
        </td>
      </tr>
    </table>
    <hr>
    <% if contract_template.body.present? %>
      <%= contract_template.body %>
      <br/>
    <% end %>
    <% if contract_template.guardian_clause.present? %>
      <p class="text-left"><strong>Guardian Clause</strong></p>
      <%= contract_template.guardian_clause %>
    <% end %>
  </div>
  <div class="page">
    <%= render "blank_contracts/signature_page", releasable: releasable, contract_template: contract_template %>
  </div>
<% end %>