<%= t('plugin.ecommerce.orders') %>

<% @orders.each do |order| order = order.decorate %> <% end %>
<%= t('plugin.ecommerce.table.id') %> <%= t('plugin.ecommerce.table.customer') %> <%= t('plugin.ecommerce.table.status') %> <%= t('plugin.ecommerce.table.paid') %> <%= t('plugin.ecommerce.table.products') %> <%= t('plugin.ecommerce.table.amount') %> <%= t('plugin.ecommerce.table.received_time') %> <%= t('plugin.ecommerce.table.payment_method') %> <%= t('camaleon_cms.admin.table.actions') %>
<%= order.slug %> <%= order.details.customer %> <%= raw order.the_status %> <%= order.paid? ? 'Yes' : 'No' %> <% order.get_meta("products", {}).each do |key, product| %> <%= product[:qty] %> x <%= product[:product_title] %> (<%= "#{current_site.current_unit} #{product[:price]}" %>)
<% end %>
<%= current_site.current_unit %> <%= order.get_meta("payment", {})[:amount] %> <%= order.details.received_at %> <%= order.payment_method.name rescue "" %> <%= link_to raw(''), {action: :show, id: order.slug}, class: "btn btn-info btn-xs", title: "#{t('camaleon_cms.admin.button.preview')}" %> <%= link_to raw(''), {action: :edit, id: order.slug}, class: "btn btn-default btn-xs", title: "#{t('camaleon_cms.admin.button.edit')}" %>
<%= content_tag("div", raw(t('camaleon_cms.admin.message.data_found_list')), class: "alert alert-warning") if @orders.empty? %> <%= will_paginate @orders, renderer: BootstrapPagination::Rails %>