{% extends 'base.html.twig' %} {% set titleName = "Batches - Lots" %} {% 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_BATCH_MANAGER') %} {% if clientDolibarrName is not null %} {% endif %} {% endif %}
{% for batch in batches %} {% endfor %}
ID Number Of Lot Client Shipper Created By Created At Status Type Orders Action
{{ batch.id }} {{ batch.numberOfLot }} {{ batch.clientDolibarrName }} {{ batch.shipper.type }} {{ batch.createdBy.firstName }} {{ batch.createdBy.lastName }} {{ batch.createdAt|date("d/m/Y") }} {{ batch.orders|length }} View {% if (is_granted('ROLE_ADMIN') or is_granted('ROLE_BATCH_MANAGER')) and batch.status == 1 %} {# #} Delete {% endif %}
ID Number Of Lot Client Shipper Created By Created At Status Type Orders Action
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BATCH_MANAGER') %} {% if clientDolibarrName is not null %} {% endif %} {% endif %} {% endblock %} {% block script %} {% endblock %}