{{ function('pll_e', 'Feed subscription') }}

{{ function('pll_e', 'Weekly food delivery for your pet') }}

{% if first_name or last_name %} {{ first_name }} {{ last_name }} {% else %} {{ function('pll_e', 'Name is not set') }} {% endif %}

{{ function('pll_e', 'Phone') }}:

{% if phone %} {{ phone }} {% else %} {{ function('pll_e', 'Not filled') }} {% endif %}

{{ function('pll_e', 'Email') }}:

{% if email %}

{{ email }}

{% if activated %}

{{ function('pll_e', 'Email is verified') }}

{% else %}

{{ function('pll_e', 'Email is not verified') }}

{% if uuid %}

{{ function('pll_e', 'Email with verification link is sent to your email.') }}

{% endif %} {% endif %} {% else %}
{% endif %}

{{ function('pll_e', 'Linked accounts') }}:

{% if tg_account %} {% else %} {% endif %}

{{ function('pll_e', 'Logout') }}
{% if pets %} {% for pet in pets %} {% include 'pet-card.twig' with { 'item': pet } %} {% endfor %} {% endif %}

{{ function('pll_e', 'Feed subscription') }}

{{ function('pll_e', 'Weekly food delivery for your pet') }}

{% if customer_orders %} {% for order in customer_orders %} {% set meta_data = order.meta_data.order_data %} {% set shipping_address = order.get_address('shipping') %}

{{ function('pll_e', 'Order from') }} {{ order.date_created|date('Y.m.d') }}

{{ order.id }}

{{ function('pll_e', 'Summary') }}:

{{ order.get_total() }}

{% set order_track = meta_data.order_number|default('') %}

{{ function('pll_e', 'Delivery address') }}

{% if meta_data.office_code %} {{ function('pll_e', 'CDEK shipping point') }}
{{ office_name }} {% else %} {{ shipping_address.city }} {{ shipping_address.address_1 }} {% endif %}

{% for item in order.get_items %} {% set product = item.get_product %} {% set thumbnail = product ? function('wp_get_attachment_image_url', product.get_image_id(), 'woocommerce_thumbnail') : function('wc_placeholder_img_src', 'woocommerce_thumbnail') %}

{{ item.name }}

{{ item.quantity }}

{{ item.total }} {{ function('get_woocommerce_currency_symbol', code) }}

{% endfor %}
{% for item in order.get_items %} {% set product = item.get_product %} {% set thumbnail = product ? function('wp_get_attachment_image_url', product.get_image_id(), 'woocommerce_thumbnail') : function('wc_placeholder_img_src', 'woocommerce_thumbnail') %} {% if thumbnail %} {% endif %} {% endfor %}
{% endfor %} {% else %}

{{ function('pll_e', 'No orders yet') }}

{% endif %}