<% path ="/origami/#{@sale_id}/#{@cashier_type}/customers/#{@page}" %> <%= form_tag path, :id => "filter_form", :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.card_no") %> <%= t("views.right_panel.detail.membership_type") %> <%= t("views.right_panel.detail.contact_no") %> <%= t("views.right_panel.detail.email") %>
<% if crm_customer.customer_id != "" && crm_customer.customer_id != "" %> <%= @i += 1 %> <%else%> - <% end %> <%= crm_customer.customer_type rescue '-' %> <%= crm_customer.name %> <%= crm_customer.card_no rescue '-' %> <% 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.contact_no %> <%= crm_customer.email %>

There are no record for your search

<%if !@dining_facility.nil?%> <% elsif @cashier_type == 'quick_service' || @cashier_type == "food_court" %> <%else%> <%end%>
<%= simple_form_for @crm_customer,:url => crm_customers_path, :method => :post do |f| %> <%= f.error_notification %> <%= f.hidden_field :id, :class => "form-control col-md-6 " %>

     
">
<%= f.input :name, :class => "form-control name", :required => true %> <% flash.each do |name, msg| %> <% str="[\"#{msg['name']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>
">
<%= f.input :contact_no, :class => "form-control contact_no" ,:required => true%> <% flash.each do |name, msg| %> <% str="[\"#{msg['contact_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end %>
">
<%= f.input :email, :class => "form-control email" ,:required => true%> <% flash.each do |name, msg| %> <% str="[\"#{msg['email']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end %>
<%= f.file_field :image_path, :class => "img-thumbnail" %>

<%= f.input :nrc_no,:label => "NRC No", :class => "form-control nrc_no" %>
<%= f.input :company, :class => "form-control col-md-6 company"%> <% flash.each do |name, msg| %> <% str="[\"#{msg['company']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end -%>
<%= f.text_field :date_of_birth, :value=>"01-01-1990",:class=>"datepicker form-control col-md-12"%>
<%= f.input :address, :class => "form-control address" %>
<%= f.input :tax_profiles, :collection => @taxes, :input_html => { :multiple => true }, :class => "form-control tax_profiles" %>
">
<%= f.input :card_no, :class => "form-control card_no"%> <% flash.each do |name, msg| %> <% str="[\"#{msg['card_no']}\"]" str.gsub!('["', '') str.gsub!('"]', '') %> <%= str %> <% end %>
<%= f.submit t("views.btn.submit"),:class => 'btn bg-blue btn-md waves-effect', :id => 'submit_customer' %>
<% end %>

Card Tap