{% extends 'base.html.twig' %} {% set titleName = "Retuned Batches" %} {% block title %} POWER DATA | {{titleName}} {% endblock %} {% block page %}{{titleName}}{% endblock %} {% block breadcrumb %} {% if titleName != "Home" %} {{titleName}} {% endif %} {% endblock %} {% block css %} {% endblock %} {% block content %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %}

DataTable with default features

{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_RETURN_BATCH_MANAGER') %} Correct Packet {% endif %}
{% for batch in batches %} {% endfor %}
ID Lot Shipper Created By Created At Status Orders Action
{{ batch.id }} {{ batch.numberOfLot }} {{ batch.shipper.type }} {{ batch.createdBy.firstName }} {{ batch.createdBy.lastName }} {{ batch.createdAt|date("d/m/Y") }}
{% if batch.stat|length > 0 %} {% if batch.stat["status-1"] > 0 %}{{ batch.stat["status-1"] }}{% endif %} {% if batch.stat["status-2"] > 0 %}{{ batch.stat["status-2"] }}{% endif %} {% if batch.stat["status-3"] > 0 %}{{ batch.stat["status-3"] }}{% endif %} {% endif %}
View {% if (is_granted('ROLE_ADMIN') or is_granted('ROLE_RETURN_BATCH_MANAGER')) and batch.status == 1 and batch.returnBatchOrders|length == 0 %} {# #} Delete {% endif %} {% if is_granted('ROLE_ADMIN') %} Delete Forced {% endif %}
ID Number Of Lot Shipper Created By Created At Status Orders Action
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_RETURN_BATCH_MANAGER') %} {% endif %} {% endblock %} {% block script %} {% endblock %}