{% block content %}
{% set totalAmount = ((totalAmount is defined) and totalAmount)%}
{% set categories = app_category_get_data() %}
{% set params = app_get_params() %}
{% set userType = (app.user)?app.user.UserType:'' %}
{% set role = (app.user)?app.user.UserRoles:'' %}
{% set wesbiteName = document.getProperty('website_name') %}
{% set mecstore_lang = app.request.locale %}
{% if mecstore_lang == 'en'%}
{% set prefix_language = '/en/' %}
{% else %}
{% set prefix_language = '/' %}
{% endif %}
<script>
window.portoTexts = {
addedToCart: "{{ 'added_to_cart'|trans }}",
viewCart: "{{ 'view_cart'|trans }}",
linkCart: "{{ 'link_cart'|trans }}",
linkCheckout: "{{ 'link_checkout'|trans }}",
};
</script>
<style>
.sidebar-shop .widget.prezzo {
display:none!important;
}
</style>
<header class="header box-shadow">
<div class="header-middle sticky-header" data-sticky-options="{'mobile': true}">
<div class="container">
<div class="header-left">
<button class="mobile-menu-toggler" type="button">
<i class="fas fa-bars fa-2x"></i>
<!-- <img src="/mecstore/b2c/assets/images/custom/logo.png" alt="Porto Logo" width="111" height="44"> -->
</button>
<a href="{{ prefix_language }}" class="logo">
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<img src="/mecstore/b2c/assets/images/custom/logo.png" alt="Mecstore" class="d-block" width="262" height="auto" >
{% else %}
<img src="/mecstore/b2c/assets/images/custom/logo.png" alt="Mecstore" class="d-block" width="262" height="auto" >
{% endif %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<a href="{{ path('b2c-account-index') }}" class="d-block d-lg-none text-dark">
{{ 'Benvenuto'|trans }} {# <strong>{{app.user.firstname}} {{app.user.lastname}}</strong> #}
</a>
{% endif %}
</a>
</div>
<div class="header-center">
<div
class="header-icon header-search header-search-inline header-search-category w-lg-max text-right mt-0">
<a href="#" class="search-toggle" role="button"><i class="icon-search-3"></i></a>
<form action="{{ path('b2c-search') }}" id="search-form" name="search-form" method="get">
<div class="header-search-wrapper">
<input type="search" class="form-control" name="term" id="term" value=""
placeholder="{{ 'Cerca prodotto...'|trans }}" required>
<div class="select-custom">
<select id="cat" name="cat">
{% if categories %}
<option value="" selected data-href="{{ path('b2c-shop-category', {categoryname: 'ovunque',category: 0}) }}">{{ 'tutto il catalogo'|trans }}</option>
{% for category in categories %}
{% if params.cat is defined %}
{% if params.cat == category.id %}
<option value="{{category.Id}}" selected data-href="{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% else %}
<option value="{{category.Id}}" data-href="{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% endif %}
{% else %}
<option value="{{category.Id}}" data-href="{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% endif %}
{% endfor %}
{% endif %}
</select>
</div><!-- End .select-custom -->
<button class="btn icon-magnifier bg-dark text-white term-search-btn" title="search"
type="submit"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
</div>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<div class="header-right ml-0 ml-lg-auto">
<a href="{{ path('b2c-account-profile') }}" class="pr-2 pr-xl-5 border-right border-dark d-none d-lg-block ">
{{ 'Benvenuto'|trans }} {# <strong>{{app.user.firstname}} {{app.user.lastname}}</strong> #}
</a>
<a href="{{ path('account-logout') }}" class="pl-2 pl-xl-5 d-none d-lg-block " >
{{ 'general.logout' | trans }}
</a>
<div class="language-container"></div>
</div>
{% else %}
<div class="header-right ml-0 ml-lg-auto">
<a href="{{ path('account-login') }}" class="d-none d-lg-block login-lnk">
{{ 'general.login' | trans }}
</a>
<div class="language-container"></div>
</div>
{% endif %}
</div>
</div>
<div class="header-bottom sticky-header" data-sticky-options="{'mobile': false}">
<!-- header sticky -->
<div class="container">
<div class="header-left">
<a href="/" class="logo">
<img src="/mecstore/b2c/assets/images/custom_icons/logo-mecstore.png" alt="Logo">
</a>
</div>
<div class="header-center ml-4">
<nav class="main-nav w-100">
<ul class="menu">
<li class="mr-xl-5 mr-4" >
<a href="{{ prefix_language }}" class="page-index" data-name="app-index.php">Home</a>
</li>
<li class="mr-xl-5 mr-4" >
<a class="page-index">{{ 'catalogo'|trans }}</a>
<div class="megamenu megamenu-fixed-width megamenu-3cols">
<div class="row">
{% set count = 0%}
{% for category in app_category_get_data() %}
{% if (count == 0) %}<div class="col-lg-4">{% endif %}
<ul class="submenu">
<li><a href="{{ path('b2c-shop-category', {categoryname: category.key,category: category.id}) }}">{{ category.Name }}</a></li>
</ul>
{% set count = count + 1 %}
{% if (count % 9 == 0) %} </div><div class="col-lg-4"> {% endif %}
{% endfor %}
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
</div><!-- End .megamenu -->
</li>
<li class="mr-xl-5 mr-4" >
<a class="page-index">{{ 'FORNITORI'|trans }}</a>
<div class="megamenu megamenu-fixed-width megamenu-3cols providers">
<div class="row">
{% set count = 0%}
{% set brands = app_brand_get_data() %}
{% for brand in brands %}
{% if (count == 0) %}<div class="col-lg-2">{% endif %}
<ul class="submenu">
{% if brand.enableDedicatedPage %}
<li><a href="{{ path('b2c-brand', {brandname: brand.key,brand: brand.id}) }}">{{ brand.Name }}</a></li>
{% else %}
<li><a href="{{ path('b2c-shop-brand', {brandname: brand.key,brand: brand.id}) }}">{{ brand.Name }}</a></li>
{% endif %}
</ul>
{% set count = count + 1 %}
{% set elements_column = (brands|length //6) + 1 %}
{% if (count % elements_column == 0) %}</div><div class="col-lg-2"> {% endif %}
{% endfor %}
<hr/>
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
</div><!-- End .megamenu -->
</li>
<li class="mr-xl-5 mr-4" >
<a href="{{ prefix_language }}about-us" class="page-index" data-name=" ">{{ 'il gruppo'|trans }}</a>
</li>
<li class="mr-xl-5 mr-4" >
<a href="{{ prefix_language }}b2c_shops" class="page-index" data-name=" ">{{ 'punti vendita'|trans }}</a>
</li>
<li class="mr-xl-5 mr-4" >
<a href="{{ prefix_language }}b2c_news" class="page-index" data-name="app-news.php">{{ 'News'|trans }}</a>
</li>
<li class="mr-xl-5 mr-4" >
<a href="{{ prefix_language }}catalogues" class="page-index" data-name=" ">{{ 'download'|trans }}</a>
</li>
<li class="mr-xl-5 mr-4" >
<a href="#" class="page-index" data-name=" ">{{ 'contattaci'|trans }}</a>
<ul>
<li><a href="{{ prefix_language }}contact-us" class="page-index" data-name=" ">{{ 'richiesta informazioni'|trans }}</a></li>
<li><a href="{{ prefix_language }}collaborations">{{ 'collaborazioni'|trans }}</a></li>
<li><a href="{{ prefix_language }}work-with-us">{{ 'lavora con noi'|trans }}</a></li>
</ul>
</li>
<li class="mr-xl-5 mr-4" >
<a href="https://mecstore.boels.com/it-it/noleggiare" class="page-index" target="_blank" data-name=" ">{{ 'noleggi'|trans }}</a>
</li>
<li class="float-right">
<a href="{{ path('b2c-shop-cart-detail') }}" class="icon-a page-index" data-name="{{ path('b2c-shop-cart-detail') }}">
<i class="fas fa-shopping-cart"></i>
<span class="cart-count badge-circle">{{ app_cart_items_count_b2c() }}</span>
</a>
</li>
<li class="float-right">
<a class="icon-a page-index" href="{{ path('b2c-wishlist-index') }}" data-name="{{ path('b2c-wishlist-index') }}">
<i class="icon-star-empty"></i>
<span class="wishlist-count badge-circle sticky" style="display:none!important">{{ app_wish_list_count() }}</span>
</a>
</li>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{# <li class="sticky-button mr-xl-5 mr-4" > #}
{# <li class="sticky-button one border-left border-dark pl-2 ">
<a href="app-my-mecstore.php" class="page-index" data-name="app-my-mecstore.php">my mecstore</a>
</li> #}
<li class="float-right border-left border-right border-dark pl-2 pl-xl-5 pr-2 pr-xl-5 mymecstore" >
{% if wesbiteName == 'b2c' and app.user %}
<a href="{{path('b2c-account-index')}}" class="{{path('b2c-account-index')}}" ><span>my mecstore</span></a>
{% else %}
<a class="" ><span>my mecstore</span></a>
{% endif %}
{% if wesbiteName == 'b2c' and app.user %}
{% else %}
<div class="megamenu megamenu-fixed-width b2c">
<div class="row">
{# <div class="col-lg">
<ul class="submenu">
<li><a href="{{ path('b2c-account-profile') }}">Profilo</a></li>
<li><a href="{{path('b2c-account-index')}}">MY MECSTORE</a></li>
</ul>
</div> #}
<div class="col-lg">
<strong>B2B</strong>
<ul class="submenu">
<li><a href="{{ pimcore_url({'type': 'confirm'},'account-order-list',true,true) }}">Ordini inviati</a></li>
<li><a href="{{ pimcore_url({'type': 'pre-ordini'},'account-order-list',true,true) }}">Preordini</a></li>
<li><a href="{{ pimcore_url({'type': 'booked'},'account-order-list',true,true) }}">Prenotazioni</a></li>
<li><a href="{{ pimcore_url({'type': 'draft'},'account-order-list',true,true) }}">Bozze ordini</a></li>
{# <li><a href=""><strong>Note</strong></a></li> #}
</ul>
</div>
<div class="col-lg">
<strong>B2C</strong>
<ul class="submenu">
<li><a href="{{ path('b2c-account-profile') }}">Profilo</a></li>
<li><a href="">Preventivi</a></li>
<li><a href="">Ordini ricevuti</a></li>
<li><a href="">Contatti ricevuti</a></li>
<li><a href="">Resi</a></li>
</ul>
</div>
{# <div class="col-lg border-left">
<ul class="submenu">
<li><a href="">Anagrafica</a></li>
<li><a href="">Rubrica indirizzi</a></li>
</ul>
</div> #}
</div>
{#header - generate pimcore navigation #}
{#header - navigation icons#}
</div>
{% endif %}<!-- End .megamenu -->
</li>
{% endif %}
{# <li class="sticky-button mr-xl-5 mr-4" >
<a href="/my-mecstore" class="page-index" data-name="app-my-mecstore.php">my mecstore</a>
</li>
<li class="float-right" >
<a href="app-cart.php" class="icon-a page-index" data-name="app-cart.php">
<i class="fas fa-shopping-cart"></i>
<span class="cart-count badge-circle">99</span>
</a>
</li>
<li class="float-right" >
<a class="icon-a page-index" href="app-favourites.php" data-name="app-favourites.php">
<i class="icon-star-empty"></i>
</a>
</li>
<li class="float-right border-right border-dark pr-2 pr-xl-5 mr-3 mr-xl-5" >
<a class="page page-index" href="app-ordini.php" data-name="app-ordini.php">
ordini
</a>
</li>
<li class="float-right border-left border-dark pl-2 pl-xl-5" >
<a class="page page-index" href="app-my-mecstore.php" data-name="app-my-mecstore.php">
my mecstore
</a>
</li> #}
</ul>
</nav>
</div>
<div class="header-right pr-4">
<!-- HEADER SEARCH STICKY -->
<div
class="header-icon header-search header-search-popup header-search-category w-lg-max text-right">
<a href="#" class="search-toggle" role="button"><i class="icon-search-3"></i></a>
<!-- SEARCH INPUT -->
<form action="#" method="get">
<div class="header-search-wrapper">
<input type="search" class="form-control" name="term_header" id="term_header" value="{% if params.term is defined %}{{ params.term }}{% endif %}"
placeholder="Cerca prodotto..." required>
<div class="select-custom">
<select id="cat_header" name="cat_header">
{% if categories %}
<option value="" selected data-href="{{ path('shop-category', {categoryname: 'ovunque',category: 0}) }}">tutto il catalogo</option>
{% for category in categories %}
{% if params.cat is defined %}
{% if params.cat == category.id %}
<option value="{{category.Id}}" selected data-href="{{ path('shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% else %}
<option value="{{category.Id}}" data-href="{{ path('shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% endif %}
{% else %}
<option value="{{category.Id}}" data-href="{{ path('shop-category', {categoryname: category.key,category: category.id}) }}">{{category.Name}}</option>
{% endif %}
{% endfor %}
{% endif %}
</select>
</div><!-- End .select-custom -->
<button class="btn icon-search-3 bg-dark text-white p-0" title="search"
type="submit"></button>
</div><!-- End .header-search-wrapper -->
</form>
</div><!-- End .header-search -->
<a href="{{ path('b2c-wishlist-index') }}" class="header-icon page-index icon-a " data-name="{{ path('b2c-wishlist-index') }}">
<i class="icon-star-empty"></i>
<span class="wishlist-count badge-circle sticky" style="display:none!important">{{ app_wish_list_count() }}</span>
</a>
<a href="{{ path('b2c-shop-cart-detail') }}" class="page-index icon-a " data-name="{{ path('b2c-shop-cart-detail') }}">
<i class="fas fa-shopping-cart"></i>
<span class="cart-count badge-circle sticky">{{ app_cart_items_count_b2c() }}</span>
</a>
</div>
</div>
</div>
</header><!-- End .header -->
{% endblock %}