{% set totalSpent = orderUtils.getTotalSpentByUser(item) %}
{% if totalSpent >0 %}
    <span class="badge badge-primary"> {{ totalSpent|format_price(false) }}</span>
{% else %}
    <span class="badge badge-secondary"> {{ totalSpent|format_price(false) }}</span>
{% endif %}