<%= render partial: 'flash' %>

<%= @user.nickname %> (<%= @user.full_name %>)

<%= link_to "[Edit profile]" , edit_user_registration_path if current_user == @user%>

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

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

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

<%= render @orders %> <%= will_paginate @orders %>
<% end %>

Products

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

Categories

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