<% if flash[:member_notice] %> <% elsif flash[:member_error] %> <% end %>
<%= form_tag crm_customers_path, :id => "filter_form", :method => :get do %>
<% end %>
<%= form_tag crm_customers_path, :method => :get do %>
<%end %>
<%= paginate @crm_customers %>
<% if @crm_customers.count > 0 %> <% @i = 0 %> <% @crm_customers.each do |crm_customer| %> <% end %> <% else %> <% end %>
<%= t("views.right_panel.detail.sr_no") %> <%= t :customer %> <%= t("views.right_panel.detail.type") %> <%= t("views.right_panel.detail.name") %> <%= t("views.right_panel.detail.email") %> <%= t("views.right_panel.detail.contact_no") %> <%= t("views.right_panel.detail.membership_type") %> <%= t("views.right_panel.detail.card_no") %> <%= 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.customer_type rescue '-' %> <%= crm_customer.name %> <%= crm_customer.email %> <%= crm_customer.contact_no %> <% if !@membership_types.nil? %> <% @membership_types.each do |member_type| %> <% if member_type[1] == crm_customer.membership_type %> <%= member_type[0] %> <% end %> <% end %> <% end %> <%= crm_customer.card_no rescue '-' %> <%= crm_customer.paypar_account_no rescue '-' %> <% if crm_customer.membership_id.nil? && !crm_customer.membership_type.nil? && !crm_customer.membership_type.blank? && !crm_customer.paypar_account_no.blank? && !crm_customer.paypar_account_no.nil? %> <%= link_to t("views.btn.sync"), crm_customer_sync_path(crm_customer), :class => "btn btn-md bg-green waves-effect" %> <% end %> <% if @customer_update_phone_email_membertype %> <%= link_to t("views.btn.update"), crm_customer_update_phone_email_member_type_path(crm_customer), :class => "btn btn-md bg-green waves-effect" %> <% end %> <%= link_to t("views.btn.show"), crm_customer_path(crm_customer), :class => "btn btn-md bg-blue waves-effect" %>

There is no data for search <%=@filter%>....

<% if @create_flag %>
<%= render 'new_form', crm_customer: @crm_customer, taxes: @taxes %>
<% end %>