{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% extends ea.templatePath('layout') %} {% trans_default_domain ea.i18n.translationDomain %} {% block body_id 'ea-detail-' ~ entity.name ~ '-' ~ entity.primaryKeyValue %} {% block body_class 'ea-detail ea-detail-' ~ entity.name %} {% block content_title %} {%- apply spaceless -%} {% set custom_page_title = ea.crud.customPageTitle(pageName, entity ? entity.instance : null) %} {{ custom_page_title is null ? (ea.crud.defaultPageTitle|trans(ea.i18n.translationParameters, 'EasyAdminBundle'))|raw : (custom_page_title|trans(ea.i18n.translationParameters))|raw }} {%- endapply -%} {% endblock %} {% block page_actions %} {% for action in entity.actions %} {{ include(action.templatePath, { action: action }, with_context = false) }} {% endfor %} {% endblock %} {% block content_footer_wrapper '' %} {% block main %} {% set order = entity.instance %}

{{order.firstName}} {{order.lastName}}

{{order.recoveryAddress}}
{{order.receiveDate}}
INVOICE TO:

{{order.firstName}} {{order.lastName}}

{{order.recoveryAddress}}

{{order.orderNumber}}

Date of Invoice: {{order.createdDate|date("Y-m-d H:i")}}
{% set totalOrder = 0 %} {% for singleCateg in order.panier %} {% for singleProduct in singleCateg %} {% set totalOrder =totalOrder + (totalProduct - singleProduct["desc_price"]) %} {% endfor %} {% endfor %}
Produit Service Prix Qte Remise TOTAL

{{singleProduct["product_name"]}}

{{singleProduct["category_name"] }} ({{singleProduct["subcategory_name"]}}) {{singleProduct["base_price"]}} DH {{singleProduct["quentity"]}} {{singleProduct["desc_price"]}} DH {% set totalProduct = singleProduct["quentity"] * singleProduct["base_price"] %} {{totalProduct - singleProduct["desc_price"]}} DH
Montant Total {{totalOrder}} DH
TAX 25% $1,300.00
GRAND TOTAL $6,500.00
{% endblock %} {% macro open_form_field_panel(field = null) %} {% set panel_name = field is null ? null : 'content-' ~ field.uniqueId %} {% set collapsible = field is null ? false : field.customOption('collapsible') %} {% set collapsed = field is null ? false : field.customOption('collapsed') %} {% set panel_icon = field is null ? null : (field.customOptions.get('icon')|default(false)) %} {% set panel_label = field is null ? null : field.label %} {% set panel_help = field is null ? null : field.help|default(false)%} {% set panel_has_header = collapsible or panel_icon or panel_label or panel_help %}
{% if panel_has_header %} {% endif %}
{% endmacro %} {% macro render_field(entity, field) %}
{{ field.label|raw }} {% if field.help is not empty %} {% endif %}
{{ include(field.templatePath, { field: field, entity: entity }, with_context = false) }}
{% endmacro %}