<%
  content_for :section_title, "Completed Tests"
  content_for :title, "Quiz Results - Skills Assessment Admin"
%>
<main class="summary_tpl">
  <table cellspacing="0" cellpadding="0">
    <tr>
      <th>Test ID</th>
      <th>Experience</th>
      <th>Recruiter</th>
      <th>Interview Status</th>
    </tr>

    <% @candidates.each do |candidate| %>
      <tr>
        <td><%= link_to candidate.test_hash, admin_result_path(candidate.test_hash) %></td>
        <td><%= candidate.experience %> years</td>
        <td><%= mail_to(candidate.recruiter.email) %></td>
        <td><%= candidate.review_status unless candidate.pending? %></td>
      </tr>
    <% end %>
  </table>
</main>
