{% extends 'eshop/@customer_section.html.twig' %} {% block title %}{{ 'title_customer_my_orders'|trans({}, 'shop') }}{% endblock %} {% block description %}{% endblock %} {% block customer_block %}

{{ 'title_customer_my_orders'|trans({}, 'shop') }}

{% for order in pagination %}
ID: {{ order.id }}
{{ 'created'|translate }}: {{ order.createdAt|formatDatetime }}

{% if order.deliveryAddress %}

{{ 'title_delivery_address'|translate }}

{{ order.deliveryAddress.name }}
{{ order.deliveryAddress.street }}
{{ order.deliveryAddress.postalCode }}, {{ order.deliveryAddress.city }}
{{ order.deliveryAddress.country.translation(shop.currentLocale).name }}

{% endif %} {% if order.billingAddress %}

{{ 'title_billing_address'|translate }}

{{ order.billingAddress.name }}
{{ order.billingAddress.street }}
{{ order.billingAddress.postalCode }}, {{ order.billingAddress.city }}
{{ order.billingAddress.country.translation(shop.currentLocale).name }}

{% endif %}
{# TODO: vypis platby objednavky #}

TODO: Payment

Visa **** 4216
Shipping fee: $56
Total paid: $456


    {% for product in order.orderItems %}
  • {{ product.productName }}

    {{ product.quantity }} {{ product.unit }} = {{ product.totalPrice|money }}
  • {% endfor %}
{% else %} {% endfor %}
{% endblock %}