<% @i = 0 %> <% @crm_customers.each do |crm_customer| %> <% end %>
<%= form_tag crm_customers_path, :id => "filter_form", :method => :get do %>
<% end %>
<%= t("views.right_panel.detail.sr_no") %> <%= t("views.right_panel.detail.name") %> <%= t("views.right_panel.detail.card_no") %> <%= t("views.right_panel.detail.contact_no") %> <%= t("views.right_panel.detail.email") %> <%= t("views.right_panel.detail.action") %>
<% if crm_customer.customer_id != "CUS-000000000001" && crm_customer.customer_id != "CUS-000000000002" %> <%= @i += 1 %> <%else%> - <% end %> <%= crm_customer.name %> <%= crm_customer.card_no rescue '-' %> <%= crm_customer.contact_no %> <%= crm_customer.email %> <%= link_to t("views.btn.show"), crm_customer_path(crm_customer) %>

<%= paginate @crm_customers %>
<%= render 'new_form', crm_customer: @crm_customer, taxes: @taxes %>