{% trans_default_domain 'orders' %}
<div {{ attributes }}>
   <h1>{{ this.title }}</h1>
   <twig:block name="content">

      <twig:block name="order_payment">
         {% if this.paymentDescription %}
            {{ this.paymentDescription|raw }}
            <hr>
         {% endif %}
      </twig:block>

      <twig:block name="order_buttons">
         <twig:Account:OrderDetail:Buttons id_order="{{ this.id_order }}"/>
      </twig:block>

      <twig:Account:OrderDetail:Info id_order="{{ this.id_order }}"/>

      <twig:block name="order_items">
         <twig:Account:OrderDetail:Items id_order="{{ this.id_order }}" />
      </twig:block>
      {# <twig:Account:OrderDetail:DeliveryType id_order="{{ this.id_order }}"/> #}
      <div class="discounts-pricebox-wrapper">
         <twig:Account:OrderDetail:Discounts id_order="{{ this.id_order }}"/>

         <twig:Account:OrderDetail:Pricebox id_order="{{ this.id_order }}"/>
      </div>

      <twig:Account:OrderDetail:BonusProgram id_order="{{ this.id_order }}"/>

      <twig:block name="order_custom_data">{# ? #}</twig:block>

      <twig:block name="order_user_info">
         <twig:Account:OrderDetail:UserInfo id_order="{{ this.id_order }}"/>
      </twig:block>

      <twig:block name="order_note">
         {% if this.note %}
            <h3>{{ 'order.view.note'|trans }}</h3>
            <p>{{ this.note|raw }}</p>{# |escape:'htmlall'|nl2br nofilter #}
            <hr>
         {% endif %}
      </twig:block>

       <twig:block name="order_manuals">
         <twig:Account:OrderDetail:OrderAttachments id_order="{{ this.id_order }}"/>
       </twig:block>

      <twig:block name="order_history">
         <twig:Account:OrderDetail:History id_order="{{ this.id_order }}"/>
      </twig:block>
   </twig:block>
</div>
