{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {% extends ea.templatePath('layout') %} {% trans_default_domain ea.i18n.translationDomain %} {% block head_stylesheets %} {{parent()}} {% endblock %} {% block body_class 'page-content' %} {# deprecated 'The "page_title" block is deprecated, use "content_title" instead.' #} {% block page_title %} {% endblock %} {# deprecated 'The "page_content" block is deprecated, use "main" instead.' #} {% block page_content %} {% endblock %} {% block content_title %}{{ block('page_title') }}{% endblock %} {% block main %}
{% if shipment is defined %}
{% for singleStep in shipment.trackingSteps|reverse %} {% set stepClass = "timeline__event--type3" %} {% if shipment.trackingSteps.last == singleStep %} {% set stepClass = "timeline__event--type2 animate__animated animate__heartBeat" %} {% endif %}
{{singleStep.createdAt|date("d-m-Y H:i")}}

REF : {{shipment.reference}} ({{shipment.paymentType|trans({},"admin")}})

{% if shipment.cashOnDeliveries|length > 0 %}
COD
    {% for singleCOD in shipment.cashOnDeliveries %}
  • {{singleCOD.paymentType}} ({{singleCOD.amount}})
  • {% endfor %}
{% endif %} {% if shipment.cashOnDeliveries|length > 0 %}
Papers
    {% for singlePaper in shipment.shipmentPapers %}
  • {{singlePaper.reference}}
  • {% endfor %}
{% endif %}
{{"sender"|trans({},"admin")}} : {{shipment.senderCustomer}} {{"City"|trans({},"admin")}} : {{shipment.collectCity}}
{{"sender"|trans({},"admin")}} : {{shipment.senderCustomer}} {{"City"|trans({},"admin")}} : {{shipment.collectCity}}
{{singleStep.stepType.name}} {% if singleStep.isCompleted != true %} {{"waiting"|trans({},"admin")}} {% else %} {{"done"|trans({},"admin")}} {% endif %}
{% if singleStep.stepType.isBatchTracking and shipment.trackingSteps.last == singleStep %}
{% for singleShipmentItem in shipment.shipmentItems %} {% set textStatus = "text-danger" %} {% if singleShipmentItem.getAllTrackedChildren|length == singleShipmentItem.shipmentItemChildren|length %} {% set textStatus = "text-success" %} {% endif %}

    {% for singleChild in singleShipmentItem.allTrackedChildren %}
  • {{singleChild.barcode}}
  • {% endfor %}
{% endfor %}
{% endif %}
{% if shipment.trackingSteps.last == singleStep %} {% if shipment.trackingSteps.last.stepType.fieldsToEdit|length > 0 %} {% if singleStep.stepType.isBatchTracking %} {% if shipment.currentStepTrackedChildren|length == shipment.shipmentItemsChildren|length %} {% set urlEdit = ea_url() .setController('App\\Flexy\\ShopBundle\\Controller\\Shipping\\ShipmentCrudController') .setAction('edit') .setEntityId(shipment.id) %} {{"Edit shipment"|trans({},"admin")}} {% endif %} {% else %} {% set urlEdit = ea_url() .setController('App\\Flexy\\ShopBundle\\Controller\\Shipping\\ShipmentCrudController') .setAction('edit') .setEntityId(shipment.id) %} {{"Edit shipment"|trans({},"admin")}} {% endif %} {% else %} {% endif %} {% else %} {% endif %}
{% endfor %}
{% endif %}
{% endblock %} {% block body_javascript %} {{parent()}} {% endblock %}