{{ __('Feed subscription', 'woodmart')|esc_html }}

{{ __('Weekly food delivery for your pet', 'woodmart')|esc_html }}

{% if first_name or last_name %} {{ first_name }} {{ last_name }} {% else %} {{ __('Name is not set', 'woodmart')|esc_html }} {% endif %}

{{ __('Phone', 'woodmart')|esc_html }}:

{% if phone %} {{ phone }} {% else %} {{ __('Not filled', 'woodmart')|esc_html }} {% endif %}

{{ __('Email', 'woodmart')|esc_html }}:

{% if email %}

{{ email }}

{% if activated %}

{{ __('Email is verified', 'woodmart')|esc_html }}

{% else %}

{{ __('Email is not verified', 'woodmart')|esc_html }}

{% if uuid %}

{{ __('Email with verification link is sent to your email.', 'woodmart')|esc_html }}

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

{{ __('Linked accounts', 'woodmart')|esc_html }}:

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

{{ __('Logout', 'woodmart')|esc_html }}
{% if pets %} {% for pet in pets %} {% include 'pet-card.twig' with { 'post': pet } %} {% endfor %} {% endif %}

{{ __('Feed subscription', 'woodmart')|esc_html }}

{{ __('Weekly food delivery for your pet', 'woodmart')|esc_html }}

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

{{ __('Order from', 'woodmart')|esc_html }} {{ order.date_created|date('Y.m.d') }}

{{ order.id }}

{{ __('Summary', 'woodmart')|esc_html }}:

{{ order.total }}

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

{{ __('Delivery address', 'woodmart')|esc_html }}

{% if meta_data.office_code %} {{ __('CDEK shipping point', 'woodmart')|esc_html }}
{# Предполагается, что API-запрос обрабатывается в PHP, добавляем в контекст #} {{ 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 %}

{{ __('No orders yet', 'woodmart')|esc_html }}

{% endif %}
{% if pet %}

{{ __('Weight', 'woodmart')|esc_html }}:

{{ pet.weight_text }}

{{ __('Age', 'woodmart')|esc_html }}:

{{ pet.old_text }}

{{ __('Activity', 'woodmart')|esc_html }}:

{{ pet.activity_text }}

{% endif %}