<!-- Header START -->
<header class="navbar-light header-sticky">
<!-- Logo Nav START -->
<nav class="navbar navbar-expand-xl">
<div class="container">
<!-- Logo START -->
<a class="navbar-brand" href="{{path('home_app')}}" style="position: relative">
<div style="display: inline-block">
<img id="logo-img" class="light-mode-item navbar-brand-item" src="{{ asset('build/images/logo1.jpeg') }}" alt="logo">
</div>
{# <img class="dark-mode-item navbar-brand-item" src="{{ asset('build/images/logo-light.svg') }}" alt="logo">
<div id="logo-text">
Sunscape
</div>
#}
</a>
<!-- Logo END -->
<!-- Responsive category toggler -->
<button class="navbar-toggler ms-sm-auto mx-3 me-md-0 p-0 p-sm-2" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCategoryCollapse" aria-controls="navbarCategoryCollapse" aria-expanded="false" aria-label="Toggle navigation">
<i class="bi bi-grid-3x3-gap-fill fa-fw"></i><span class="d-none d-sm-inline-block small">Category</span>
</button>
<!-- Nav category menu START -->
<div class="navbar-collapse collapse" id="navbarCategoryCollapse">
<ul class="navbar-nav navbar-nav-scroll nav-pills-primary-soft text-center ms-auto p-2 p-xl-0">
{% if currentPath is defined and currentPath != "booking" and currentPath is defined and currentPath != "booking_form_finish" and currentPath is defined and currentPath != "credit_card_tokenization" %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown-language" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
{{ currentLocale.name }}
</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-language">
{% for locale in locales %}
<li><a class="dropdown-item" href="{{ urlParams[locale.key] }}">{{ locale.name }}</a></li>
{% endfor %}
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="dropdown-currency" role="button"
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
RUB
</a>
<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-currency" id="dropdown-currency-menu">
<li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">RUB</a></li>
<li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">USD</a></li>
</ul>
</li>
{% endif %}
{# {% if currentPath != 'booking_form_finish' and currentPath != 'credit_card_tokenization' %}#}
{# <li class="nav-item dropdown">#}
{# <a class="nav-link dropdown-toggle" href="#" id="dropdown-language" role="button"#}
{# data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
{# {{ currentLocale.name }}#}
{# </a>#}
{# <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-language">#}
{# {% for locale in locales %}#}
{# <li><a class="dropdown-item" href="{{ urlParams[locale.key] }}">{{ locale.name }}</a></li>#}
{# {% endfor %}#}
{# </ul>#}
{# </li>#}
{# <li class="nav-item dropdown">#}
{# <a class="nav-link dropdown-toggle" href="#" id="dropdown-currency" role="button"#}
{# data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">#}
{# RUB#}
{# </a>#}
{# <ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdown-currency" id="dropdown-currency-menu">#}
{# <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">RUB</a></li>#}
{# <li><a class="dropdown-item" href="#" data-url="{% if qp is defined %}{{ qp|json_encode }}{% endif %}" data-locale="{{ currentLocale.key }}" data-cp="{{ currentPath }}">USD</a></li>#}
{# </ul>#}
{# </li>#}
{# {% endif %}#}
<!-- Profile dropdown START -->
<li class="nav-item ms-3 dropdown">
{% if app.user %}
<!-- Avatar -->
<a class="avatar avatar-sm p-0" href="#" id="profileDropdown" role="button" data-bs-auto-close="outside" data-bs-display="static" data-bs-toggle="dropdown" aria-expanded="false">
<img class="avatar-img rounded-1" src="{{ app.user.avatar }}" alt="avatar">
</a>
<ul class="dropdown-menu dropdown-animation dropdown-menu-end shadow pt-3" aria-labelledby="profileDropdown">
<!-- Profile info -->
<li class="px-3 mb-3">
<a href="{{ path('app_profile_my', {'search': params.search}) }}" class="d-flex align-items-center">
<!-- Avatar -->
<div class="avatar me-3">
<img class="avatar-img rounded-1 shadow" src="{{ app.user.avatar }}" alt="avatar">
</div>
<div>
<div class="h6 mt-2 mt-sm-0" >{{ app.user.firstName }} {{ app.user.lastName }}</div>
<p class="small m-0">{{ app.user.email }}</p>
</div>
</a>
</li>
<!-- Links -->
<li> <hr class="dropdown-divider"></li>
{# <li><a class="dropdown-item" href="#"><i class="bi bi-bookmark-check fa-fw me-2"></i>{% trans %}My bookings{% endtrans %}</a></li>#}
{% if params is defined %}
<li><a class="dropdown-item" href="{{ path('app_wishlist_list', {'search': params.search}) }}"><i class="bi bi-heart fa-fw me-2"></i>{% trans %}My Wishlist{% endtrans %}</a></li>
{% endif %}
<li><a class="dropdown-item bg-danger-soft-hover" href="{{ path('app_logout') }}"><i class="bi bi-power fa-fw me-2"></i>{% trans %}Sign out{% endtrans %}</a></li>
<li> <hr class="dropdown-divider"></li>
<!-- Dark mode switch START -->
<li>
<div class="modeswitch-wrap" id="darkModeSwitch">
<div class="modeswitch-item">
<div class="modeswitch-icon"></div>
</div>
<span>{% trans %}Dark mode{% endtrans %}</span>
</div>
</li>
<!-- Dark mode switch END -->
</ul>
{% else %}
<li class="nav-item">
<a href="{{ path('app_login') }}" class="btn btn-sm btn-primary mb-0"><i class="fa-solid fa-right-to-bracket me-sm-2"></i><span class="d-none d-sm-inline">{% trans %}Sign in{% endtrans %}</span></a>
</li>
{% endif %}
</li>
<!-- Profile dropdown END -->
</ul>
<!-- Profile and Notification START -->
</div>
</div>
</nav>
<!-- Logo Nav END -->
</header>
<!-- Header END -->