{% extends 'base.html.twig' %} {% set titleName = "Inventories" %} {% 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_INVENTORY_MANAGER') %} {% endif %}
{% for inventory in inventories %} {% endfor %}
ID Number Type Created By Created At Status Action
{{ inventory.id }} {{ inventory.number }} {{ inventory.createdBy.firstName }} {{ inventory.createdBy.lastName }} {{ inventory.createdAt|date("d/m/Y") }} View {% if is_granted('ROLE_ADMIN') and inventory.status == 1 %} {# #} Delete {% endif %}
ID Number Type Created By Created At Status Action
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_INVENTORY_MANAGER') %} {% endif %} {% endblock %} {% block script %} {% endblock %}