<?php 
 $mobMenu = resCollection([
 'resources' => [
 'women',
 'men',
 'atelier',
 'contacts',
 'care',
 'about-brand',
 'lookbooks',
 ]
 ]);

 $menu = resCollection([
 'resources' => [
 'women',
 'men',
 'contacts',
 ]
 ]);
 ?>

<nav class="mobile-menu">
 <div class="content">
 <div class="outer">
 <div class="lang-links">
 <?php echo $this->runChild('components.lang'); ?>
 </div>
 
 <ul>
 <?php $__currentLoopData = $mobMenu; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $item): $loop = $this->incrementLoopIndices();  ?>
 <li>
 <a href="<?php echo \htmlentities(resUrl($item->alias)??'', ENT_QUOTES, 'UTF-8', false); ?>">
 <?php echo \htmlentities($item->pagetitle??'', ENT_QUOTES, 'UTF-8', false); ?>

 </a>
 </li>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 
 <li>
 <?php echo $this->runChild('components.accountLink'); ?>
 </li>
 </ul>
 </div>
 
 <div class="social">
 <?php $__currentLoopData = getGlobalParams('contactsSocial'); $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $social): $loop = $this->incrementLoopIndices();  ?>
 <a href="<?php echo \htmlentities($social['link']??'', ENT_QUOTES, 'UTF-8', false); ?>" target="_blank"><?php echo $social['icon']; ?></a>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </div>
 </div>
</nav>  

<header class="header flex">
 <a class="menu-button"></a>

 <ul>
 <?php $__currentLoopData = $menu; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $item): $loop = $this->incrementLoopIndices();  ?>
 <li>
 <a href="<?php echo \htmlentities(resUrl($item->alias)??'', ENT_QUOTES, 'UTF-8', false); ?>">
 <?php echo \htmlentities($item->pagetitle??'', ENT_QUOTES, 'UTF-8', false); ?>

 </a>
 </li>
 <?php endforeach; $this->popLoop(); $loop = $this->getFirstLoop(); ?>
 </ul>

 <div class="logo">
 <a href="<?php echo \htmlentities(resUrl()??'', ENT_QUOTES, 'UTF-8', false); ?>"><img src="assets/site/img/logo.svg"></a>
 </div>

 <div class="links">
 <?php ($resAtelier = getRes('atelier')); ?>

 <a href="<?php echo \htmlentities($resAtelier->langUrl??'', ENT_QUOTES, 'UTF-8', false); ?>" class="header-link">
 <?php echo \htmlentities($resAtelier->pagetitle??'', ENT_QUOTES, 'UTF-8', false); ?>

 </a>

 <?php echo $this->runChild('components.accountLink'); ?>

 <a href="#" class="search" x-data @click.prevent="$store.modalStore.open('search');"></a>

 <button class="cart" x-data="smallCart" x-bind="bind">
 <span x-text="$store.cart.data.total.count"></span>
 </button>

 <?php echo $this->runChild('components.lang'); ?>
 </div>
</header>
