{# Mini-cart preview shown on hover over the navbar cart (Alza-style). Lazy-loaded via htmx from /partials/cart into the hover dropdown panel in base.html. Receives: items[], total, currency, lang. #} {% import "macros/ui.html" as ui %} {% if items | length > 0 %}
{% for item in items %}
{{ item.name }}

{{ item.quantity }} × {{ item.price }} {{ item.currency }}

{{ item.line_total }} {{ item.currency }}
{% endfor %}
{{ t(key="cart-total", lang=lang | default(value='sk')) }} {{ total }} {{ currency }}
{{ ui::button(href="/cart", variant="outline-primary", label=t(key="cart-title", lang=lang | default(value='sk')), extra="flex-1", attrs='hx-boost="false"') }} {{ ui::button(href="/checkout", variant="primary", label=t(key="cart-checkout", lang=lang | default(value='sk')), extra="flex-1", attrs='hx-boost="false"') }}
{% else %}
{{ t(key="cart-empty", lang=lang | default(value='sk')) }}
{% endif %}