<%= link_to t('.new', :default => t("helpers.links.new")),new_batch_path,:class => 'btn btn-primary' %>
<%= select_tag "client", options_from_collection_for_select(@clients, "id", "name"), prompt: "All", :class => 'form-control'%>
<%= select_tag "product_category", options_from_collection_for_select(@product_categories, "id", "name"), prompt: "All", :class => 'form-control'%>
Batch List (Count: <%= @count %> )
<% @batches.each do |batch| %> <% end %>
Order Ref Created By Qty Processing Qty Success Qty Fail Export Count Exported By Created At Action
<%= batch.order_ref rescue '' %> <%= batch.user_name rescue '' %> <%= batch.qty_processing rescue '' %> <%= batch.qty_success rescue '' %> <%= batch.qty_fail rescue '' %> <%= batch.export_count %> <%= batch.exported_by %> <%= batch.created_at.strftime("%e,%b %Y %I:%M %p") rescue '' %> <%= link_to 'Detail', batch_path(batch), :class => 'btn btn-primary btn-sm' %>
<%= paginate @batches %>