Sha256: 82f09b1a53113097c950c231bd650b161fb49e37785e4b11707de0f07e00efc4

Contents?: true

Size: 554 Bytes

Versions: 3

Compression:

Stored size: 554 Bytes

Contents

<%= render component("ui/panel").new(title: t("spree.lifetime_stats")) do %>
  <%= render component("ui/details_list").new(
    items: [
      { label: t("spree.total_sales"), value: @user.display_lifetime_value.to_html },
      { label: t("spree.order_count"), value: @user.order_count.to_i },
      { label: t("spree.average_order_value"), value: @user.display_average_order_value.to_html },
      { label: t("spree.member_since"), value: @user.created_at.to_date },
      { label: t(".last_active"), value: last_login(@user) },
    ]
  ) %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_admin-0.3.2 app/components/solidus_admin/users/stats/component.html.erb
solidus_admin-0.3.1 app/components/solidus_admin/users/stats/component.html.erb
solidus_admin-0.3.0 app/components/solidus_admin/users/stats/component.html.erb