src/Flexy/ShopBundle/templates/orders/field/startCollectAt.html.twig line 1

  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var field \EasyCorp\Bundle\EasyAdminBundle\Dto\FieldDto #}
  3. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  4. {% set order = entity.instance %}
  5. {% set shippingMethod = order.shippingMethod %}
  6. {#
  7. {% if shippingMethod %}
  8. {% set shippingInfos = shopProvider.getOrderExtraInfos(order) %}
  9. {% else %}
  10. {% set shippingInfos = [] %}
  11. {% endif %}
  12.  
  13.  #}
  14. <span class="badge badge-primary">{{showRoundAndIntervalDatetime(order.startProcessingAt,shippingMethod.shippingDuration).showSlots}}</span>