{% extends 'Header/base.html.twig' %}
{% block headerTitle %}
{% set route = app.request.get('_route') %}
{% if app.session.get('franchise') is defined and app.session.get('franchise') is not null %}
{% include 'Extentions/Icons/shop.html.twig' %}
{{ app.session.get('franchise') }}
{% if app.session.get('shop') is defined and app.session.get('shop') is not null %}
{% set isShopManager = is_granted('ROLE_SHOP_MANAGER') and not is_granted('ROLE_MANAGER') and not is_granted('ROLE_ADMIN') and not is_granted('ROLE_DEVELOPER') and not is_granted('ROLE_SUPPORT') %}
{% set isShopRoute = route starts with 'foxorders_shop_' and route != 'foxorders_shop_shop_index' %}
{% if isShopManager or isShopRoute %}
{% if app.session.get('logged') is defined and app.session.get('logged') is null %}
{% include 'Extentions/Icons/arrow_right_small.html.twig' with {'size': 24} %}
{{ app.session.get('shop') }}
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endblock %}
{% block headerMenu %}
{% include('Header/Topbar/menu.html.twig') %}
{% endblock %}
{% block appNavbar %}
{% include('Header/Topbar/navbar.html.twig') %}
{% endblock %}