<%= total_count > 0 ? (verified_count.to_f / total_count * 100).round : 0 %>% Complete
<% @document_verifications.each do |verification| %>
<% is_rep = verification.customer_type_requirement.applies_to == "representative" %>
<% label = is_rep ? "Representative" : "Customer" %>
<% color = is_rep ? "warning" : "primary" %>
<% optional = !verification.customer_type_requirement.mandatory %>
- "
data-verification-documents-target="listItem">
<%= verification.customer_type_requirement.description %>
<%= label %>
<% if optional %>
Optional
<% end %>
<%= f.hidden_field "customer_document_verifications[#{verification.id}]", value: false %>
<%= f.check_box "customer_document_verifications[#{verification.id}]",
{ checked: verification.verified,
class: "toggle-single verification-toggle d-none",
id: "cdv_#{verification.id}",
data: { action: "change->verification-documents#toggleSingle" } },
true, false %>
<% end %>
<%= f.submit "Save Verification",
class: "btn btn-primary btn-sm rounded-pill px-4",
data: { action: "click->verification-documents#onSaveClick" } %>