<% content_for :section_title, "Candidates" %>
<%= link_to(admin_new_candidate_path, { class: 'secondary-btn' }) do %> <% end if policy(Candidate).create? %> <% @candidates.each do |candidate| %> <% end %>
Candidate Test ID Email Experience Progress Completed Reminded Review Status
<%= link_to candidate.name, admin_edit_candidate_path(candidate.id) %> <%= candidate.test_hash %> <%= mail_to(candidate.email) %>
<%= link_to "resend welcome email", admin_resend_welcome_path(candidate.id), remote: true, class: '', data: { id: 'ajax-action' } %>
<%= candidate.experience %> years <%= candidate.status %> <%= candidate.completed ? link_to("Submitted", admin_result_path(candidate.test_hash)) : "" %> <%= candidate.reminded ? "Yes" : "" %> <%= candidate.review_status %>