<nav id="mainnav">
    <div class="container-fluid">
        <div class="row">
            <div id="mainnavwrap">
                <ul>
                

                <?php if(count($categories)): ?>
                        <li class="cc"><a href="#"><?php echo e(__('frontside.header.all_products')); ?></a>
                            <ul class="mm">
                                <?php
                                    $cgn = '';
                                    $i = 0;
                                ?>

                                <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $cat): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                    <?php if($cat->cg_name != $cgn && $i > 0): ?> </ul></li> <?php endif; ?>

                                    <?php if($cat->cg_name != $cgn ): ?>

                                        <?php
                                            $grtitle = strtoupper($cat->cg_name);
                                        ?>

                                        <li><a href="#"><?php echo e($grtitle); ?></a>
                                        <ul style="background-image: url(<?php echo e(url($cat->cg_img)); ?>">
                                        <h3><?php echo e($grtitle); ?></h3>

                                    <?php endif; ?>

                                    <?php
                                        $link  = tr_url($cat->slug);
                                        $title = ucfirst($cat->cat_name);
                                    ?>

                                    <?php if($cat->cat_bold): ?>
                                        <li class=""><strong><a href="<?php echo e(url($link)); ?>" title="<?php echo e($title); ?>"><?php echo e($title); ?></a></strong></li>
                                    <?php else: ?>
                                        <li class=""><a href="<?php echo e(url($link)); ?>" title="<?php echo e($title); ?>"><?php echo e($title); ?></a></li>
                                    <?php endif; ?>

                                    <?php
                                        $cgn = $cat->cg_name;
                                        ++$i;
                                    ?>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </ul>
                        </li>
                    </ul>
                <?php endif; ?>
                

                <?php
                    $hlink  = locRoute('index');
                    $htitle = (/*session('clang')*/app()->getLocale() == 'sr') ? 'Početna' : 'Home';
                ?>

                <li><a href="<?php echo e($hlink); ?>" title="<?php echo e($htitle); ?>"><?php echo e($htitle); ?></a></li>

                
                <?php if(!empty($featcats)): ?>
                    


                    <?php $__currentLoopData = $featcats; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $clink  = tr_url($row->slug);
                            $ctitle = ucfirst($row->cat_name);
                        ?>

                        <li><a href="<?php echo e(url($clink)); ?>" title="<?php echo e($ctitle); ?>"><?php echo e($ctitle); ?></a></li>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                <?php endif; ?>
                

                
                <?php if(!empty($featpositions)): ?>
                    <?php $__currentLoopData = $featpositions; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $pos): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $plink  = tr_url($pos->slug);
                            $ptitle = ucfirst($pos->pos_name);
                        ?>

                        <li><a href="<?php echo e(url($plink)); ?>" title="<?php echo e($ptitle); ?>"><?php echo e($ptitle); ?></a></li>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
                

                
                <?php if(!empty($featpages)): ?>
                    <?php $__currentLoopData = $featpages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $page): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php
                            $plink  = tr_url($page->slug);
                            $ptitle = ucfirst($page->page_name);
                        ?>

                        <li><a href="<?php echo e(url($plink)); ?>" title="<?php echo e($ptitle); ?>"><?php echo e($ptitle); ?></a></li>

                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                <?php endif; ?>
                

                
                <?php
                    $hlink  = locRoute('contact');
                    $htitle = (/*session('clang')*/app()->getLocale() == 'sr') ? 'Kontakt' : 'Contact';
                ?>

                <li><a href="<?php echo e($hlink); ?>" title="<?php echo e($htitle); ?>"><?php echo e($htitle); ?></a></li>
                <br clear="all" />
                </ul>
            </div><!--mainnavwrap-->
        </div><!--row-->
    </div><!--container-->
</nav><!--mainnav-->
