<li class="menu-title"><span data-key="t-menu">KLIENT</span></li>
{% include '_partials/menu/item.html.twig' with {
"label": "Strona główna",
"icon": 'ri-home-line',
"path_name": "dashboard"
} %}
{% set isAllegroProject = false %}
{% set isFbProject = false %}
{% set isGoogleProject = false %}
{% set isSeoProject = false %}
{% for project in app.user.clientProjects %}
{% if project.category == constant('App\\Entity\\Project::CATEGORY_ALLEGRO') %}
{% set isAllegroProject = true %}
{% endif %}
{% if project.category == constant('App\\Entity\\Project::CATEGORY_FB_ADS') %}
{% set isFbProject = true %}
{% endif %}
{% if project.category == constant('App\\Entity\\Project::CATEGORY_GOOGLE_ADS') %}
{% set isGoogleProject = true %}
{% endif %}
{% if project.category == constant('App\\Entity\\Project::CATEGORY_SEO') %}
{% set isSeoProject = true %}
{% endif %}
{% endfor %}
{% if isAllegroProject %}
{% include '_partials/menu/item.html.twig' with {
"label": "Raporty ADS",
"icon": 'ri-bar-chart-2-line',
"path_name": "allegro_ads_chart"
} %}
{% endif %}
{% if isFbProject or isGoogleProject %}
{% include '_partials/menu/item.html.twig' with {
"label": "Raporty ADS Social Media",
"icon": 'ri-bar-chart-2-line',
"path_name": "ads_social_media"
} %}
{% endif %}
{% if isSeoProject %}
{% include '_partials/menu/item.html.twig' with {
"label": "Raporty SEO",
"icon": 'ri-bar-chart-2-line',
"path_name": "ads_seo"
} %}
{% endif %}
{% include '_partials/menu/item.html.twig' with {
"label": "Timeline",
"icon": 'ri-file-list-line',
"path_name": "task_index"
} %}
{% include '_partials/menu/item.html.twig' with {
"label": "Kontakt",
"icon": 'ri-pause-circle-line',
"path_name": "user_contacts"
} %}
{% include '_partials/menu/item.html.twig' with {
"label": "Materiały szkoleniowe",
"icon": 'ri-attachment-line',
"path_name": "training_material_index"
} %}
{% include '_partials/menu/item.html.twig' with {
"label": "Edytuj konto",
"icon": 'ri-edit-box-line',
"path_name": "user_edit",
'path_options': {id: app.user.id},
} %}