{% if current_user.is_authenticated %}
{% if unread_notifications and unread_notifications > 0 %}
{{ unread_notifications }}
{% endif %}
{% endif %}
{% if session.get('cart') %}
{% set cart_count = session['cart']|length %}
{% if cart_count > 0 %}
{{ cart_count }}
{% endif %}
{% endif %}