<%= t("my_account") %>

<%= hook :account_summary do %>
<%= t("email") %>: <%= @user.email %>
<%= link_to edit_account_path, :class => "btn btn-mini" do %> <%= t('edit') %> <% end %>

<% end %> <%= hook :account_my_orders do %>

<%= t("my_orders") %>

<% if @orders.present? %> <% @orders.each do |order| %> <% end %>
<%= t("order_number") %> <%= t("order_date") %> <%= t("status") %> <%= t("payment_state") %> <%= t("shipment_state") %> <%= t("total") %>
<%= link_to order.number, order_url(order) %> <%=order.created_at.to_date%> <%= t(order.state).titleize %> <%= t("payment_states.#{order.payment_state}") if order.payment_state %> <%= t("shipment_states.#{order.shipment_state}") if order.shipment_state %> <%= number_to_currency order.total %>
<% else %>

<%= t(:you_have_no_orders_yet) %>

<% end %>
<% end %>