<header class="header" id="header">
{% set user = null %}
{% if app.user is not null %}
{% set user = {
name: app.user.displayName,
roles: app.user.roles
} %}
{% endif %}
<init-constant
:constant="{
isLogin: !!('{{ app.user ? true : false }}'),
user: JSON.parse('{{ user|json_encode }}')
}"
@get-constant="getConstant">
</init-constant>
<div class="header-wrapper">
<div class="header-logo">
<a href="{{ k_site_url() }}" class="nav-logo">
<img src="{{ asset('build/images/logo-white.png') }}" alt="Beautytada">
</a>
</div>
{% if app.request.attributes.get('_route') != 'home' %}
<open-address-form inline-template>
<div class="address" @click="activeAddressForm">
<template v-if="postcode">
<span>{% trans %}ZIP code{% endtrans %}</span>
<span class="address-value" v-text="postcode"></span>
</template>
<template v-else>
<span class="address-content-value">{% trans %}Where do you want to order from?{% endtrans %}</span>
</template>
</div>
</open-address-form>
{% endif %}
<div class="header-control-buttons">
<div class="header-restaurant-registration">
<a href="{{ k_page_url({'slug': 'register-a-salon'}) }}" class="header-restaurant-registration-btn">
<svg xmlns="http://www.w3.org/2000/svg" enable-background="new 0 0 24 24" height="24px" viewBox="0 0 24 24" width="24px" fill="#fff"><g><rect fill="none" height="24" width="24"/></g><g><g><rect height="2" width="15" x="2" y="4"/><path d="M15,17h2v-3h1v-2l-1-5H2l-1,5v2h1v6h9v-6h4V17z M9,18H4v-4h5V18z M3.04,12l0.6-3h11.72l0.6,3H3.04z"/><polygon points="23,18 20,18 20,15 18,15 18,18 15,18 15,20 18,20 18,23 20,23 20,20 23,20"/></g></g></svg>
<p>{% trans %}registration{% endtrans %}</p>
</a>
</div>
{% include 'default/layout/header-components/locales.twig' %}
<burger-button @burger-button-toggle-state="togglePopup"
:option="{height: '15px', round: '4px'}"
:is-active="burgerButtonActive">
</burger-button>
<login-form :path="'{{ path("app_api_login") }}'" :is-login="isLogin" @login-success="loginSuccess"
:logo="{src: '{{ asset("build/images/logo-white.png") }}', alt: 'Beautytada'}" :show-popup="showLoginPopup" @toggle-login-form="toggleLoginForm">
{% include 'default/components/form/login.twig' %}
</login-form>
<user-info :is-login="isLogin" :is-active="burgerButtonActive" :user="user">
{% include 'default/components/user-info.twig' %}
</user-info>
</div>
</div>
</header>