<%= t(:orders_count)%> <%= Order.unscoped.available_for_user(current_user).count_on(Date.today.ago(1.month), Date.today)%>
<%= t(:orders_amount)%> <%= Order.unscoped.available_for_user(current_user).total_on(Date.today.ago(1.month), Date.today)%>
<%= t(:best_managers)%> <% Manager.best_managers(Date.today.ago(1.month), Date.today).each do |best_month_manager|%> <%= Manager.find(best_month_manager.manager_id).name %> <%end%>
<%= t(:best_warehouses)%> <% Warehouse.best_warehouses(Date.today.ago(1.month), Date.today).each do |best_month_warehouse|%> <%= Warehouse.find(best_month_warehouse.warehouse_id).name %> <%end%>