{% extends '@WebProfiler/Profiler/layout.html.twig' %}

{% block toolbar %}
    {% if collector.cart is not null %}
        {% set icon %}
            {{ include('@CoreShopOrder/Collector/Icon/cart.svg') }}

            {% if collector.admin %}
                <span class="sf-toolbar-value">
                    -
                </span>
            {% else %}
                <span class="sf-toolbar-value">
                    {{ collector.cart.total|coreshop_format_money(collector.cart.getCurrency.getIsoCode, collector.locale) }}
                </span>
            {% endif %}
        {% endset %}

        {% set text %}
            {% if collector.admin %}
                <div class="sf-toolbar-info-piece">
                    <b>status</b>
                    <span>disabled in backend</span>
                </div>
            {% else %}
                <div class="sf-toolbar-info-piece">
                    <b>Cart ID</b>
                    <span class="sf-toolbar-status">{{ collector.cart.id|default('New Cart')}}</span>
                </div>
            {% endif %}
        {% endset %}

        {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: false }) }}
    {% endif %}
{% endblock %}
