% content_for(:page_title, t('.title')) %>
<%= render 'spree/admin/shared/subscription_breadcrumbs', subscription: @subscription %>
<%= render 'spree/admin/shared/subscription_sidebar', subscription: @subscription %>
<%= render 'spree/admin/shared/subscription_tabs', current: :orders, subscription: @subscription %>
<%= render 'spree/admin/shared/subscription_actions', subscription: @subscription %>
<% content_for :table_filter_title do %>
<%= t('spree.filter') %>
<% end %>
<% content_for :table_filter do %>
<%= search_form_for [:admin, @search], url: admin_subscription_subscription_orders_path(@subscription) do |f| %>
<%= label_tag :q_created_at_gt, t('spree.date_range') %>
<%= label_tag :q_state_eq, t('spree.status') %>
<%= f.select :state_eq, Spree::Order.state_machines[:state].states.collect {|s| [t(s.name, scope: 'spree.order_state'), s.value]}, {include_blank: true}, class: 'custom-select fullwidth' %>
<%= button_tag t('spree.filter_results'), class: 'btn btn-primary' %>
<% end %>
<% end %>