Sha256: 2bd20b44ce15ef90d4eee0b51895b9196f94ab0f9f20df821fc1e90eb6b75c9b
Contents?: true
Size: 1.36 KB
Versions: 12
Compression:
Stored size: 1.36 KB
Contents
<%= content_for(:sidebar) do %> <div data-hook="admin_user_lifetime_stats" class="card mb-3"> <div class="card-header"> <h5 class="card-title mb-0 h6"> <%= Spree.t(:lifetime_stats) %> </h5> </div> <div class="table-responsive border-0 rounded bg-white"> <table class="table" id="user-lifetime-stats" data-hook> <tr> <td width="30%"><%= Spree.t(:total_sales) %>:</td> <td> <% @user.report_values_for(:lifetime_value, current_store).each do |value| %> <div><%= value %></div> <% end %> </td> </tr> <tr> <td><%= Spree.t(:num_orders) %>:</td> <td><%= @user.order_count(current_store) %></td> </tr> <tr> <td><%= Spree.t(:average_order_value) %>:</td> <td> <% @user.report_values_for(:average_order_value, current_store).each do |value| %> <div><%= value %></div> <% end %> </td> </tr> <tr> <td><%= Spree.t('admin.user.store_credits') %>:</td> <td id="store_credit"> <% @user.available_store_credits(current_store).each do |value| %> <div><%= value %></div> <% end %> </td> </tr> <tr> <td><%= Spree.t(:member_since) %>:</td> <td><%= pretty_time(@user.created_at) %></td> </tr> </table> </div> </div> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems