{{ 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 { 'post': 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.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 ? product.thumbnail.src('thumbnail') : '' %}

{{ item.name }}

{{ item.quantity }}

{{ item.total }}

{% endfor %}
{% for item in order.get_items %} {% set product = item.get_product %} {% set thumbnail = product ? product.thumbnail.src('thumbnail') : '' %} {% if thumbnail %} {% endif %} {% endfor %}
{% endfor %} {% else %}

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

{% endif %}
{% if pet %}

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

{{ pet.weight_text }}

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

{{ pet.old_text }}

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

{{ pet.activity_text }}

{% endif %}