<% content_for :page_title do %> <%= Spree.t(:customer_returns) %> <% end %> <% content_for :table_filter do %>
<%= search_form_for [:admin, @search], url: spree.admin_customer_returns_path do |f| %>
<%= f.label :number_cont, Spree.t(:number) %> <%= f.text_field :number_cont, class: "form-control js-quick-search-target js-filterable" %>
<%= button Spree.t(:search), 'search.svg' %>
<% end %>
<% end %> <% if @collection.any? %>
<% @collection.each do |customer_return| %> <% end %>
<%= Spree.t(:created_at) %> <%= Spree.t(:number) %> <%= Spree.t(:order) %> <%= Spree.t(:reimbursement_status) %> <%= Spree.t(:pre_tax_total) %>
<%= customer_return.created_at.strftime('%F %T %Z') %> <%= link_to customer_return.number, spree.edit_admin_order_customer_return_path(customer_return.order, customer_return) %> <%= link_to customer_return.order.number, spree.edit_admin_order_path(customer_return.order) %> <% if customer_return.fully_reimbursed? %> <%= Spree.t(:reimbursed) %> <% else %> <%= Spree.t(:incomplete) %> <% end %> <%= customer_return.display_pre_tax_total.to_html %> <%= link_to_edit_url spree.edit_admin_order_customer_return_path(customer_return.order, customer_return), no_text: true if can?(:edit, customer_return) %>
<% else %>
<%= Spree.t(:no_resource_found, resource: plural_resource_name(Spree::CustomerReturn)) %>.
<% end %> <%= render partial: 'spree/admin/shared/index_table_options', locals: { collection: @collection, per_page_action: :customer_returns } %>