<%= render partial: 'flash' %>

<%= @user.full_name %> - <%= @user.nickname %> <%= link_to "edit" , edit_user_registration_path %>

Balance: <%= euro(@user.balance) %>

<% if @user.orders.any? %>

Orders (<%= @user.orders_count %>)

<% @orders.each do |k,v| %> <%= render 'orders/order', order: v.first, products: v %> <% end %>
<% end %>

Products

<%= render partial: "products/product_row", collection: @products, as: :product %>

Categories

<%= render partial: "products/category", collection: @categories %>