<% admin_breadcrumb(link_to plural_resource_name(Spree::LegacyUser), spree.admin_users_path) %> <% admin_breadcrumb(link_to @user.email, edit_admin_user_url(@user)) %> <% admin_breadcrumb(plural_resource_name(SolidusSubscriptions::Subscription)) %> <%= render 'spree/admin/users/sidebar' %> <%= render 'spree/admin/users/tabs', current: :subscriptions %>
<%= plural_resource_name(SolidusSubscriptions::Subscription) %> <% if @subscriptions.any? %> <% @subscriptions.each do |subscription| %> <% end %>
<%= SolidusSubscriptions::Subscription.human_attribute_name(:created_at) %> <%= SolidusSubscriptions::Subscription.human_attribute_name(:actionable_date) %> <%= SolidusSubscriptions::Subscription.human_attribute_name(:interval) %> <%= SolidusSubscriptions::Subscription.human_attribute_name(:state) %> <%= SolidusSubscriptions::Subscription.human_attribute_name(:processing_state) %>
<%= l(subscription.created_at.to_date) %> <%= subscription.actionable_date ? l(subscription.actionable_date) : '-' %> <%= subscription.interval.inspect %> <%= render 'spree/admin/subscriptions/state_pill', subscription: subscription %> <%= render 'spree/admin/subscriptions/processing_state_pill', subscription: subscription %> <%= link_to_edit(subscription, no_text: true, url: edit_admin_subscription_path(subscription)) %>
<% else %>
<%= render 'spree/admin/shared/no_objects_found', resource: SolidusSubscriptions::Subscription %>
<% end %>