<?php $_shouldextend[2]=1; ?>

<?php $this->startSection('content'); ?>
 <div class="cabinet-page">
 <h1>
 <?php echo \htmlentities(getRes('account')->longtitle??'', ENT_QUOTES, 'UTF-8', false); ?>

 </h1>

 <?php 
 $menus = resCollection(['parent' => 'account']);
 ?>

 <div class="flex">
 <nav>
 <a class="link">Персональні дані</a>
 
 <ul>
 <?php $__currentLoopData = $menus; $this->addLoop($__currentLoopData);$this->getFirstLoop();
 foreach($__currentLoopData as $menu): $loop = $this->incrementLoopIndices();  ?>
 <li>
 <a href="<?php echo \htmlentities($menu->langUrl??'', ENT_QUOTES, 'UTF-8', false); ?>" <?php echo \htmlentities($res->id == $menu->id ? ' class=active' : ''??'', ENT_QUOTES, 'UTF-8', false); ?>>
 <?php echo \htmlentities($menu->pagetitle??'', ENT_QUOTES, 'UTF-8', false); ?>

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

 <li x-data="{ action: 'logout' }">
 <form x-data="form" x-bind="form">
 <button type="submit" class="logout-button">
 <?php echo \htmlentities(__('account.logout')??'', ENT_QUOTES, 'UTF-8', false); ?>

 </button>
 </form>
 </li>
 </ul>
 </nav>

 <div class="content">
 <?php echo $this->yieldContent('accountContent'); ?>
 </div>
 </div>
 </div>
<?php $this->stopSection(); ?>

<?php if (isset($_shouldextend[2])) { echo $this->runChild('layouts.main'); } ?>