{% extends 'base.html.twig' %} {% set titleName = "Companies" %} {% 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 %}
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_COMPANY_MANAGER') %} {% endif %}

DataTable with default features

{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_BREVO_VISITOR_MANAGER') %} Visitors {% endif %}
{% for company in companies %} {% endfor %}
ID Name Created By Created At Filter Status Number Of contacts Number Of messages Action
{{ company.id }} {{ company.name }} {{ company.createdBy.firstName }} {{ company.createdBy.lastName }} {{ company.createdAt|date("d/m/Y") }} {{ filter[company.filter] }} {{ status[company.status] }} {{ company.numberOfContactSelected }} {{ company.numberOfMessages }} {# View #} {% if company.status == constant('App\\Entity\\Power\\Company::STATUS_DEFAULT') %} {% if is_granted('ROLE_ADMIN') or is_granted('ROLE_COMPANY_MANAGER') %} Delete {% endif %} {% endif %}
ID Name Created By Created At Filter Status Number Of contacts Number Of messages Action
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_COMPANY_MANAGER') %} {% endif %} {% endblock %} {% block script %} {% endblock %}