{%
    set viewOptions = {
    cart: { icon: "adjust", color: "light" } ,
    cancelled: { icon: "ban", color: "danger" } ,
    shipped: { icon: "plane", color: "success" } ,
    ready: { icon: "clock", color: "primary" } ,
    }
%}

{% set value = 'sylius.ui.' ~ state %}

<i class="{{ viewOptions[state]['icon'] }} icon text-{{ viewOptions[state]['color'] }}" data-toggle="tooltip" title="{{ value|trans }}"></i>
