<ul class="nav-menu__main nav-menu__main_<?php echo e(app()->getLocale()); ?>">
    <?php
        if (Voyager::translatable($items)) {
            $items = $items->load('translations');
        }
    ?>
    <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $menu_item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php
            if (Voyager::translatable($menu_item)) {
                $menu_item = $menu_item->translate($options->locale);
    //dd($menu_item);
            }
            if ($menu_item['target'] == "_blank"){
                $target = " target=_blank";

            }
            else $target = "";
            $submenus = ['about-us','services','media'];
            $data_atribute = "";
            if($menu_item->children->count()){
                if (in_array($menu_item['route'], $submenus)) {
                    $data_atribute = 'data-item-name='.$menu_item['route'];
                }
                else{
                    $data_atribute = "";
                }
            }
        ?>

        <li class="nav-menu__item <?php echo e((Request::is('*'.$menu_item['route'])  ? 'nav-menu__item_active' : '')); ?>" <?php echo e($data_atribute); ?>>
            <?php if($menu_item->children->count()): ?>
            <p class="nav-menu__link"><?php echo e($menu_item->title); ?></p>

                <ul role="menu" class="nav-menu__submenu">

                    <?php $__currentLoopData = $menu_item->children; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subItem): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $subItem = $subItem->translate($options->locale);
                              //    dd($subItem);
                        ?>
                        <li class="nav-menu__item">
                            <a class="nav-menu__link" target="<?php echo e($subItem->target); ?>"
                               href="<?php echo e($subItem->link()); ?>"><?php echo e($subItem->title); ?></a></li>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </ul>
            <?php else: ?>
            <a class="nav-menu__link" <?php echo e($target); ?>  href="<?php echo e($menu_item->link()); ?>"><?php echo e($menu_item->title); ?></a>
            <?php endif; ?>
        </li>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

</ul>