{#
This file is part of EC-CUBE
Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
http://www.ec-cube.co.jp/
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
#}
<div class="ec-headerNaviTop">
<div class="ec-headerNaviTop__inner">
<div class="ec-headerNaviTop__left">
<p class="ec-headerNaviTop__left__text">5,400円以上<br class="sp-show">送料無料</p>
<p class="ec-headerNaviTop__left__text m-none">12時迄注文で<br class="sp-show">当日出荷</p>
</div>
<p class="ec-headerNaviTop__right">ブレイバースは<br class="m-show">美容師さん、理容師さんのための<br class="sp-show">会員制プロショップです</p>
</div>
</div>
<div class="ec-headerNaviRole">
<div class="ec-headerNaviRole__left">
<div class="ec-headerNaviRole__logo">
<a href="{{ url('homepage') }}">
<img src="{{ asset('assets/img/common/logo-header.svg') }}" alt="株式会社bravers(ブレイバーズ)" width="150" height="150" loading="lazy">
</a>
</div>
{# <div class="ec-headerNaviRole__search">
{{ render(path('block_search_product')) }}
</div>
<div class="ec-headerRole__navSP">
{{ include('Block/nav_sp.twig') }}
</div> #}
</div>
<div class="ec-headerNaviRole__right">
<div class="ec-headerNaviRole__link bt">
<a href="{{ url('contact')}}" class="link">
<img src="{{ asset('assets/img/common/hatena.svg') }}" alt="ヘルプ" width="22" height="22" loading="lazy">
<span class="ec-headerNaviRole__link__linkText">{{ 'ヘルプ・お問い合わせ'|trans }}</span>
</a>
</div>
{% if is_granted('ROLE_USER') %}
<div class="ec-headerNaviRole__link moderate s-show">
<button class="white-no-warp button">
<img class="user-icon"class="user-icon" src="{{ asset('assets/img/common/user.svg') }}" alt="" width="12" height="18" loading="lazy">
<p class="text">{{ '%last_name% %first_name%'|trans({ '%last_name%': app.user.name01, '%first_name%': app.user.name02 }) }}<span>{% if BaseInfo.option_point %}({{ 'ポイント%point%'|trans({ '%point%': app.user.point|number_format}) }}){% endif %}</span></p>
</button>
<div class="dropdown ec-headerNaviRole__link__dropdown">
<a href="{{ url('mypage') }}">マイページ</a>
<a href="{{ url('logout') }}">ログアウト</a>
</div>
</div>
{% else %}
<div class="ec-headerNaviRole__link">
<a class="link" href="{{ url('mypage_login') }}">
<img src="{{ asset('assets/img/common/login.svg') }}" alt="" width="22" height="22" loading="lazy">
<span class="ec-headerNaviRole__link__linkText">{{ 'ログイン'|trans }}</span>
</a>
</div>
{% endif %}
{# <button class="hamburger-btn">
<span></span>
<span></span>
<span></span>
</button> #}
{{ include('Block/nav_sp.twig') }}
{# <div class="ec-headerNaviRole__nav">
{{ include('Block/login.twig') }}
</div>
<div class="ec-headerRole__cart">
{{ include('Block/cart.twig') }}
</div> #}
</div>
</div>
<div class="ec-headerMenu">
<div class="ec-headerMenu__inner">
<div class="ec-headerMenu__left">
<div class="ec-headerMenu__search">
{{ render(path('block_search_product')) }}
</div>
</div>
<div class="ec-headerMenu__right">
<ul class="ec-headerMenu__list">
<li class="ec-headerMenu__list__maker">
<div class="moderate">
<button id="dropdown__btn" class="dropdown__btn white-no-warp button">メーカー・カテゴリー</button>
<div class="dropdown__body dropdown" data-tabs>
<nav class="dropdown__body__left">
{% for Category in TopCategories %}
<button class="dropdown__body__left__btn {% if loop.index == 1 %}is-active{% endif %}" data-tab>
{{ Category.name }}
</button>
{% endfor %}
</nav>
<div class="dropdown__body__right">
{% for Category in TopCategories %}
{% if Category.children|length > 0 %}
<ul class="dropdown__list {% if loop.index == 1 %}is-show{% endif %}" data-tab-content>
{# ここにカテゴリーを置いて欲しいです。 #}
{% for ChildCategory in Category.children %}
<li class="dropdown__item">
<a href="{{ url('product_list') }}?category_id={{ ChildCategory.id }}" class="dropdown__item-link {% if ChildCategory.children|length > 0 %}lowerLayer{% endif %}">
{{ ChildCategory.name }}
</a>
{# ここは第三階層 #}
{% if ChildCategory.children|length > 0 %}
<ul class="dropdown__item__hover">
{% for ChildCategory2 in ChildCategory.children %}
<li class="dropdown__item__hover__item">
<a href="{{ url('product_list') }}?category_id={{ ChildCategory2.id }}" class="dropdown__item__hover__item__link">{{ChildCategory2.name}}</a>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<button class="sp-hamburger" aria-controls="hamburger_menu">メーカー・カテゴリー</button>
</li>
<li class="ec-headerMenu__list__item">
<a href="{{ url('mypage_favorite') }}" class="link">
<img src="{{ asset('assets/img/common/favorite.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
<span class="ec-headerNav__itemLink">{{ 'お気に入り'|trans }}</span>
</a>
</li>
<li class="ec-headerMenu__list__item">
<a href="{{ url('history_product_list') }}" class="link">
<img src="{{ asset('assets/img/common/purchase.svg') }}" alt="お気に入り" width="24" height="24" loading="lazy">
<span>購入履歴</span>
</a>
</li>
<li class="ec-headerMenu__list__item ">
{{ include('Block/cart.twig') }}
</li>
</ul>
</div>
</div>
</div>