{% trans_default_domain 'front' %}{% set darkMode = 'dark-header' not in header_class %}{% set route = app.request.get('_route') %}<div id="main-header" class="{{ header_class }}"> {% if darkMode %} <div class="dark-bg"></div> {% endif %} <header class="container"> <div class="row menu"> <nav class="d-flex align-items-center justify-content-between nav-desktop"> <ul class="main-menu"> <li class="logo logo-light visible"> <a href="{{ path('front_page_home') }}"> {% if darkMode %} <img src="{{ asset('build/images/logo-color.svg') }}" alt="Citizens"> {% else %} <img src="{{ asset('build/images/logo-dark-desktop.svg') }}" alt="Citizens"> {% endif %} </a> </li> <li class="logo logo-dark d-lg-none"><a href="{{ path('front_page_home') }}"><img src="{{ asset('build/images/logo-dark.svg') }}" alt="Citizens"></a></li> <li class="d-none d-xl-inline-block {{ route starts with 'front_page_comfort' ? 'active' }}"><a href="{{ path('front_page_comfort') }}">{{ 'label.comfort'|trans }}</a></li> <li class="d-none d-xl-inline-block {{ route starts with 'front_page_services' ? 'active' }}"><a href="{{ path('front_page_services') }}">{{ 'label.services'|trans }}</a></li> <li class="d-none d-xl-inline-block {{ route starts with 'front_page_community' ? 'active' }}"><a href="{{ path('front_page_community') }}">{{ 'account.spareTimeActivities'|trans }}</a></li> <li class="d-none d-xl-inline-block {{ route starts with 'front_page_benefits_citizens' ? 'active' }}"><a href="{{ path('front_page_benefits_citizens') }}">{{ 'label.citizen_life'|trans }}</a></li> <li class="d-none d-xl-inline-block has-submenu {{ (route starts with 'front_page_investors' or route starts with 'front_page_owners') ? 'active' }}"> <a href="{{ path('front_page_investors') }}">{{ 'label.landlords'|trans }} <small><i class="fa fa-chevron-down"></i></small></a> <ul class="submenu" style="min-width: 310px;"> <li {{ route starts with 'front_page_investors' ? 'active' }}><a href="{{ path('front_page_investors') }}">Investir dans un bien coliving</a></li> <li {{ route starts with 'front_page_owners' ? 'active' }}><a href="{{ path('front_page_owners') }}">Transformer son bien en coliving</a></li> </ul> </li> <!--li class="d-none d-xl-inline-block has-submenu {{ (route starts with 'front_page_company_' or route starts with 'front_company_') ? 'active' }}"> <a href="{{ path('front_page_company_about') }}">{{ 'label.the_company'|trans }} <i class="fa fa-chevron-down"></i></a> <ul class="submenu"> <li {{ route starts with 'front_page_company_about' ? 'active' }}><a href="{{ path('front_page_company_about') }}">{{ 'label.about'|trans }}</a></li> <li {{ route starts with 'front_page_company_our_jobs' ? 'active' }}><a href="{{ path('front_page_company_our_jobs') }}">{{ 'label.our_jobs'|trans }}</a></li> <li {{ route starts with 'front_page_company_organizational_chart' ? 'active' }}><a href="{{ path('front_page_company_organizational_chart') }}">{{ 'label.our_organizational_chart'|trans }}</a></li> <li {{ route starts with 'front_company_jobs' ? 'active' }}><a href="{{ path('front_company_jobs_list') }}">{{ 'label.jobs'|trans }}</a></li> <li {{ route starts with 'front_page_faq' ? 'active' }}><a href="{{ path('front_page_faq') }}">{{ 'label.faq'|trans }}</a></li> </ul> </li--> </ul> </nav> <div class="d-none d-xl-flex align-items-center justify-content-end nav-desktop nav-cta"> <ul class="d-xl-flex align-items-center justify-content-end"> <li class="d-none d-xl-inline-block"> <a href="{{ path('front_search_index') }}" class="cta">{{ 'label.find_home'|trans }}</a></li> <li class="d-none d-xl-inline-block"> {% if not is_granted('IS_AUTHENTICATED_FULLY') %} <a href="{{ path('front_account_dashboard') }}" class="cta light open-dynamic-modal" data-route="{{ path('front_user_modal_login') }}">Compte</a> {% else %} <div class="dropdown"> <a href="{{ path('front_account_dashboard') }}" id="accountDropdown" class="cta light dropdown-toggle"> <i class="fa fa-user-circle"></i> {{ app.user.firstname }} </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="accountDropdown"> {% if app.user.hasAccessToCms %} <a class="dropdown-item" href="{{ path('cms_login_role_redirect') }}">Administration</a> {% else %} {% if app.user.isOccupyingRoom %} <a class="dropdown-item" href="{{ path('front_account_occupancy_index') }}">{{ 'account.my_room'|trans }}</a> {% endif %} {% set occupancy = app.user.currentOccupancy %} {% if occupancy is not null %} <a class="dropdown-item" href="{{ path('front_account_sparetime_activities_list') }}">{{ 'account.mySpareTimeActivities'|trans }}</a> <a class="dropdown-item" href="{{ path('front_account_support_list') }}">{{ 'account.concierge'|trans }}</a> <a class="dropdown-item" href="{{ path('front_account_maintenance_list') }}">{{ 'account.maintenance'|trans }}</a> {% endif %} <a class="dropdown-item" href="{{ path('front_account_informations') }}">{{ 'account.personal_informations'|trans }}</a> <a class="dropdown-item" href="{{ path('front_account_documents') }}">{{ 'account.my_documents'|trans }}</a> <a class="dropdown-item disabled" disabled href="{{ path('front_account_rents') }}">{{ 'account.my_rents'|trans }}</a> <a class="dropdown-item" href="{{ path('front_account_inventory') }}">{{ 'account.my_inventory'|trans }}</a> {% endif %} <hr style="margin: 5px;"> <a class="dropdown-item" href="{{ path('front_user_logout') }}">{{ 'label.logout'|trans }}</a> </div> </div> {% endif %} </li> <li class="d-none d-xl-inline-block"> {% include 'front/_shared/language-switcher.html.twig' %} </li> </ul> </div> <!-- nav-cta --> <div class="col-5 menu-mobile-toggle d-flex d-xl-none align-items-center justify-content-end pr-0"> {% if darkMode %} <img class="open-menu" src="{{ asset('build/images/icons/menu-toggle.svg') }}" alt=""> {% else %} <img class="open-menu" src="{{ asset('build/images/icons/menu-toggle-dark.svg') }}" alt=""> {% endif %} <img class="close-menu d-none" src="{{ asset('build/images/icons/menu-close.svg') }}" alt=""> </div> <!-- menu mobile toggle --> </div> <!-- row --> </header> <div class="menu-mobile"> <ul> <li class="{{ route starts with 'front_page_comfort' ? 'active' }}"><a href="{{ path('front_page_comfort') }}">{{ 'label.comfort'|trans }}</a></li> <li class="{{ route starts with 'front_page_services' ? 'active' }}"><a href="{{ path('front_page_services') }}">{{ 'label.services'|trans }}</a></li> <li class="{{ route starts with 'front_page_community' ? 'active' }}"><a href="{{ path('front_page_community') }}">{{ 'label.communities'|trans }}</a></li> <li class="{{ route starts with 'front_page_benefits_citizens' ? 'active' }}"><a href="{{ path('front_page_benefits_citizens') }}">{{ 'label.citizen_life'|trans }}</a></li> <li class="dropdown {{ (route starts with 'front_page_investors' or route starts with 'front_page_owners') ? 'active' }}"> <a data-toggle="collapse" aria-expanded="false" role="button" aria-controls="collapseInvestors" href="#collapseInvestors">{{ 'label.landlords'|trans }} <small><i class="fa fa-chevron-down"></i></small></a> <div class="collapse" id="collapseInvestors"> <ul class="mobile-submenu"> <li {{ route starts with 'front_page_investors' ? 'active' }}><a href="{{ path('front_page_investors') }}">Investir dans un bien coliving</a></li> <li {{ route starts with 'front_page_owners' ? 'active' }}><a href="{{ path('front_page_owners') }}">Transformer son bien en coliving</a></li> </ul> </div> </li> <!--li class="{{ (route starts with 'front_page_company_' or route starts with 'front_company_') ? 'active' }}"> <a href="{{ path('front_page_company_about') }}">{{ 'label.the_company'|trans }} <i class="fa fa-chevron-down"></i></a> <ul class="mobile-submenu"> <li {{ route starts with 'front_page_company_about' ? 'active' }}><a href="{{ path('front_page_company_about') }}">{{ 'label.about'|trans }}</a></li> <li {{ route starts with 'front_page_company_our_jobs' ? 'active' }}><a href="{{ path('front_page_company_our_jobs') }}">{{ 'label.our_jobs'|trans }}</a></li> <li {{ route starts with 'front_page_company_organizational_chart' ? 'active' }}><a href="{{ path('front_page_company_organizational_chart') }}">{{ 'label.our_organizational_chart'|trans }}</a></li> <li {{ route starts with 'front_company_jobs' ? 'active' }}><a href="{{ path('front_company_jobs_list') }}">{{ 'label.jobs'|trans }}</a></li> <li {{ route starts with 'front_page_faq' ? 'active' }}><a href="{{ path('front_page_faq') }}">{{ 'label.faq'|trans }}</a></li> </ul> </li--> </ul> <div class="text-center mobile-cta"> <a href="{{ path('front_search_index') }}" class="cta">{{ 'label.find_home'|trans }}</a> {% if not is_granted('IS_AUTHENTICATED_FULLY') %} <a href="{{ path('front_account_dashboard') }}" class="cta light open-dynamic-modal" data-route="{{ path('front_user_modal_login') }}">Espace compte</a> {% else %} <a href="{{ path('front_account_dashboard') }}" class="cta light">{{ 'label.account'|trans }}</a> {% endif %} </div> </div> <!-- menu mobile --> {{ header_content|raw }}</div>