{% extends 'base.html.twig' %} {% set titleName = "CRM - Salesforce" %} {% 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_BREVO_VISITOR_MANAGER') %} CRM Visitors {% endif %}
{% for order in orders %} {% 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 %} {% endfor %}
ID Delivered At Shipper Region S Price Total Source FullName Phone Tentative Action
{{ order.id }} {{ order.shippedAt|date("d/m/Y") }} {{ order.shipper.name }}[{{ order.shipper.type }}] {{ region }} {{ order.shippingPrice }} {% set total = 0 %} {% for item in order.data %} {% set total = total + (item.price * item.qty) %} {% endfor %} {% if order.voucher is not null and order.voucher.application == constant('App\\Entity\\Power\\Voucher::APPLICATION_TYPE_PRODUCT') %} {% if order.voucher.discountType == constant('App\\Entity\\Power\\Voucher::DISCOUNT_TYPE_FIX') %} {% set total = total - order.voucher.discountValue %} {% elseif order.voucher.discountType == constant('App\\Entity\\Power\\Voucher::DISCOUNT_TYPE_PERCENT') %} {% set total = total - (total * (order.voucher.discountValue/100)) %} {% endif %} {% set total = (total < 0) ? 0 : total %} {% endif %} {{ total }} {% if order.subscriber is defined and order.subscriber is not null %} Brevo {% elseif order.magentoId is defined and order.magentoId is not null %} Website {% endif %} {{ order.fullName is defined ? order.fullName : '' }} {{ order.phone is defined ? order.phone : '' }} {{ order.crmSalesNbrTentative }} {% if order.reviews is not null %} {% endif %} View
ID Delivered At Shipper Region S Price Total Source FullName Phone Tentative Action
{% endblock %} {% block script %} {% endblock %}