|
<% if customer.customer_name.present? %>
<%= customer.customer_name %>
<% else %>
<%= customer.firstname %>
<% end %>
|
<%= customer.email %> |
<%= customer.customer_type&.name %> |
<% verified_docs = customer.customer_document_verifications.where(verified: true).count %>
<% total_docs = customer.customer_document_verifications.count %>
<% if customer.verified %>
Yes
<% else %>
No
<% end %>
|
<%= customer.created_at.strftime("%Y-%m-%d") %> |
<%= link_to "Show", admin_portal_customer_path(customer), class: "btn btn-sm btn-primary" %>
<%= link_to "Edit", edit_admin_portal_customer_path(customer), class: "btn btn-sm btn-warning" %>
|