{% set totalPrice = get_carts_total_price() %}
{% set totalQuantity = get_carts_total_quantity() %}
<div class="header__sp__r-sns__wrap">
<ul class="header__sp__r-sns__list">
<li>
<a href="{{ url('homepage') }}">
<div class="header__sp__r-sns__list__img">
<img src="{{ asset('assets/img/home.svg', 'user_data') }}" alt="" />
</div>
<div class="header__sp__r-sns__list__dt">{{ 'ホーム'|trans }}</div>
</a>
</li>
<li class="header__sp__shop__menu">
<a href="{{ url('product_list') }}">
<div class="header__sp__r-sns__list__img">
<img src="{{ asset('assets/img/product.svg', 'user_data') }}" alt="" />
</div>
<div class="header__sp__r-sns__list__dt">{{ '商品一覧'|trans }}</div>
</a>
</li>
<li class="header__sp__cart">
<a href="{{ url('cart') }}">
<div class="header__sp__r-sns__list__img header__sp__r-sns__list__img03">
<img src="{{ asset('assets/img/cart.svg', 'user_data') }}" alt="" />
</div>
<div class="header__sp__r-sns__list__dt">{{ 'カート'|trans }}</div>
</a>
</li>
<li class="header__sp__r-sns__list-item-menu">
<a>
<div class="js-header__nav-btn l-header__nav-btn">
<div class="l-header__nav-btn-inner">
<div class="l-header__nav-btn-line" id="btn_spmenu">
<span class="s-1"></span><span class="s-2"></span><span class="s-3"></span>
</div>
</div>
</div>
<div class="header__sp__r-sns__list__dt header__sp__r-sns__list__dt-menu">{{ 'メニュー'|trans }}</div>
</a>
</li>
</ul>
</div>
<header class="header">
<div class="header__sp__wrap">
<div class="header__sp top__header__sp">
<div class="header__sp__nav__flex">
<div class="header__sp__nav__flex__inner">
<div class="header__sp__logo"><a href="{{ url('homepage') }}">{{ 'Vita Onigiri'|trans }}</a>
</div>
<div class="header__sp__r-wrap">
<div class="header__pc__nav__wrap">
<ul class="header__pc__nav">
{% if is_granted('ROLE_USER') %}
<li><a href="{{ url('mypage') }}">{{ 'マイページ'|trans }}</a></li>
<li><a href="{{ url('mypage_favorite') }}">{{ 'お気に入り'|trans }}</a></li>
<li><a href="{{ url('logout') }}">{{ 'ログアウト'|trans }}</a></li>
{% else %}
<li><a href="{{ url('entry') }}">{{ '新規会員登録'|trans }}</a></li>
<li><a href="{{ url('mypage_favorite') }}">{{ 'お気に入り'|trans }}</a></li>
<li><a href="{{ url('mypage_login') }}">{{ 'ログイン'|trans }}</a></li>
{% endif %}
</ul>
</div>
<a href="{{ url('cart') }}">
<div class="header__pc__cart">
<div class="header__pc__cart-r">
<div class="header__pc__cart__img"><img src="{{ asset('assets/img/icon04-pc.svg', 'user_data') }}" alt=""></div>
<div class="header__pc__cart__num">{{ totalQuantity|number_format }}</div>
</div>
<div class="header__pc__cart-l">{{ totalPrice|price }}</div>
</div>
</a>
<div class="js-header__nav-btn l-header__nav-btn h__btn-pc">
<div class="l-header__nav-btn-inner">
<div class="l-header__nav-btn-line" id="btn_spmenu">
<span class="s-1"></span>
<span class="s-2"></span>
<span class="s-3"></span>
</div>
</div>
</div>
<!-- ハンバーガーメニューBTN -->
<div class="js-header__nav-btn l-header__nav-btn ">
<div class="l-header__nav-btn-inner">
<div class="l-header__nav-btn-line" id="btn_spmenu">
<span class="s-1"></span>
<span class="s-2"></span>
<span class="s-3"></span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="header__sp__nav__wrap header__sp__nav01">
<ul class="header__sp__nav">
<li>
<a href="{{ url('product_about') }}">
<div href="" class="header__sp__nav__txt">{{ '商品について'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('product_list') }}">
<div class="header__sp__nav__txt">{{ '商品一覧'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('help_guide') }}">
<div class="header__sp__nav__txt">{{ 'ご利用ガイド'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('help_tradelaw') }}">
<div class="header__sp__nav__txt">{{ '特定商取引法に基づく表記'|trans }}</div>
</a>
</li>
{% if is_granted('ROLE_USER') %}
<li>
<a href="{{ url('mypage') }}">
<div class="header__sp__nav__txt">{{ 'マイページ'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('mypage_favorite') }}">
<div class="header__sp__nav__txt">{{ 'お気に入り'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('logout') }}">
<div class=" header__sp__nav__txt">{{ 'ログアウト'|trans }}</div>
</a>
</li>
{% else %}
<li>
<a href="{{ url('entry') }}">
<div class="header__sp__nav__txt">{{ '新規会員登録'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('mypage_favorite') }}">
<div class="header__sp__nav__txt">{{ 'お気に入り'|trans }}</div>
</a>
</li>
<li>
<a href="{{ url('mypage_login') }}">
<div class=" header__sp__nav__txt">{{ 'ログイン'|trans }}</div>
</a>
</li>
{% endif %}
<li class="header__pc__cart">
<a href="url('cart')">
<div class="header__pc__cart-r">
<div class="header__pc__cart__img"><img src="{{ asset('assets/img/icon04-pc.svg', 'user_data') }}" alt=""></div>
<div class="header__pc__cart__num">{{ totalQuantity|number_format }}</div>
</div>
<div class="header__pc__cart-l">{{ totalPrice|price }}</div>
</a>
</li>
<li class="header__pc__contact">
<a href="{{ url('contact') }}">{{ 'お問い合わせ'|trans }}</a>
</li>
</ul>
<div class="h-menu__close__btn">
<span></span>
<span></span>
<div class="h-menu__close__btn__txt">{{ '閉じる'|trans }}</div>
</div>
</div>
</div>
</header>