{% extends 'base.html.twig' %}
{% set titleName = "Orders SAV" %}
{% 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_BREVO_VISITOR_MANAGER') %}
Visitors
{% endif %}
{% for order in orders %}
ID
Dolibar
C By
Created At
Shipper
Region
Shipping Status
FullName
Phone
Tentative
Action
{% endfor %}
{{ order.id }}
{{ order.dolibarId }}
{{ order.createdBy.firstName|slice(0, 1) }} {{ order.createdBy.lastName|slice(0, 2) }}
{{ order.createdAt|date("d/m/Y") }}
{{ order.shipper.name }}
{% set region = order.region is defined ? order.region : '' %}
{% if order.region is defined and order.shipper.type == "jax" %}
{% set region = region_jax[region] %}
{% elseif order.region is defined and order.shipper.type == "tunisiaExpress" %}
{% set region = region_tunisia_express[region] %}
{% endif %}
{{ region }}
{{ order.shippingStatus is defined ? order.shippingStatus : '' }}
{{ order.fullName is defined ? order.fullName : '' }}
{{ order.phone is defined ? order.phone : '' }}
{{ order.nbrTentative }}
{% if order.subscriber is defined and order.subscriber is not null %}
Brevo
{% endif %}
{% if order.type == constant('App\\Entity\\Power\\Order::TYPE_ORDER_SIMPLE') %}
View
{% elseif order.type == constant('App\\Entity\\Power\\Order::TYPE_ORDER_RELATED_TO_BATCH') %}
View
{% endif %}
ID
Dolibar
C By
Created At
Shipper
Region
Shipping Status
FullName
Phone
Tentative
Action