{% 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 %}
DataTable with default features
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_INVENTORY_MANAGER') %}
{% endif %}
{% for inventory in inventories %}
ID
Number
Type
Created By
Created At
Status
Action
{% endfor %}
{{ 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