{% trans_default_domain 'lcshop' %} {% macro card_info(user) %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %}

  {{ user.gender == 1 ? 'Mme.' : 'M.' }} {{ user.name }}


Éditer l'utilisateur
{% endmacro card_info %} {% macro box_rank_sum_order(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% block class %}bg-maroon{% endblock %} {% block icon %}cubes{% endblock %} {% block label %} Classement par total dépensés{% endblock %} {% block value %} {% set rankSumOrder = orderUtils.rankSumOrderByUser(user) %} {% if rankSumOrder %} {{ rankSumOrder }} / {{ orderUtils.countUsersWithValidOrderShop() }} {% else %} Non classé {% endif %} {% endblock %} {% endembed %} {% endmacro box_rank_sum_order %} {% macro box_total_spent(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% trans_default_domain 'lcshop' %} {% block class %}bg-pink{% endblock %} {% block icon %}euro-sign{% endblock %} {% block label %} Total dépensés{% endblock %} {% block value %} {{ orderUtils.totalSpentByUser(user)|format_price(false) }} {% endblock %} {% endembed %} {% endmacro box_total_spent %} {% macro box_prepaid_account(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% set userMerchant = creditUtils.getUserMerchant() %} {% trans_default_domain 'lcshop' %} {% block class %}bg-blue{% endblock %} {% block icon %}cash-register{% endblock %} {% block label %} Éditer - Solde compte prépayé {% endblock %} {% block value %} {{ userMerchant.getCredit()|format_price(false) }} {% if userMerchant.getCreditActive() ==false %} (inactif) {% endif %} {% endblock %} {% endembed %} {% endmacro box_prepaid_account %} {% macro box_average_products(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% trans_default_domain 'lcshop' %} {% block class %}bg-navy{% endblock %} {% block icon %}shopping-basket{% endblock %} {% block label %} Panier moyen{% endblock %} {% block value %} {{ orderUtils.getAverageProductsByUser(user)|format_price|raw }} {% endblock %} {% endembed %} {% endmacro box_average_products %} {% macro box_rank_total_order(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% block class %}bg-info{% endblock %} {% block icon %}cubes{% endblock %} {% block label %}Classement par nombre de commande {% endblock %} {% block value %} {% set rankTotalOrder = orderUtils.rankTotalOrderByUser(user) %} {% if rankTotalOrder %} {{ rankTotalOrder }} / {{ orderUtils.countUsersWithValidOrderShop() }} {% else %} Non classé {% endif %} {% endblock %} {% endembed %} {% endmacro box_rank_total_order %} {% macro box_total_order(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% trans_default_domain 'lcshop' %} {% block class %}bg-lightblue{% endblock %} {% block icon %}shopping-cart{% endblock %} {% block label %} Nombre de commandes{% endblock %} {% block value %} {{ orderUtils.countValidOrderShopByUser(user) }} {% endblock %} {% endembed %} {% endmacro box_total_order %} {% macro box_register_since(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% trans_default_domain 'lcshop' %} {% block class %}bg-success{% endblock %} {% block icon %}calendar-plus{% endblock %} {% block label %}Date de l'inscription{% endblock %} {% block value %} {{ user.createdAt|date('d/m/Y H:i') }} {% endblock %} {% endembed %} {% endmacro box_register_since %} {% macro box_login_since(user) %} {% embed '@LcShop/backend/default/block/embed_figure_box.twig' %} {% trans_default_domain 'lcshop' %} {% block class %}bg-olive{% endblock %} {% block icon %}calendar-check{% endblock %} {% block label %}Date de dernière visite{% endblock %} {% block value %} {{ user.lastLogin|date('d/m/Y H:i') }} {% endblock %} {% endembed %} {% endmacro box_login_since %} {% macro list_order_product_redelivery(orderProductsRedelivery) %} {% for orderProduct in orderProductsRedelivery %} {% endfor %}
Id Produit Quantité Date de livraison Statut
{{ orderProduct.id }} {{ orderProduct.title }} {{ orderProduct.quantityOrder }} {% include '@LcShop/backend/default/field/datetime.html.twig' with {value : orderProduct.orderShop.deliveryDate} %} {% include '@LcShop/backend/order/field/order_status.html.twig' with {value : orderProduct.orderShop.orderStatus} %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {% if orderProduct.orderShop.isCart() %} {{ macros.button('OrderProductRedelivery', 'edit', orderProduct.id, 'primary') }}   {% endif %} {{ macros.button('OrderShop', 'show', orderProduct.orderShop.id) }}
{% endmacro list_order_product_redelivery %} {% macro list_order_shops(orderShops) %} {% for orderShop in orderShops %} {% endfor %}
Id WeekId Numéro de semaine Référence Montant TTC Statut
{{ orderShop.id }} {{ orderShop.weekId }} {{ orderShop.weekNumber }} {{ orderShop.reference }} {{ priceUtils.getTotalWithTax(orderShop, true)|format_price(false) }} {% include '@LcShop/backend/order/field/order_status.html.twig' with {value : orderShop.orderStatus} %} {% import '@LcShop/backend/default/block/macros.html.twig' as macros %} {{ macros.button('OrderShop', 'show', orderShop.id) }}
{% endmacro list_order_shops %}