<div class="header-lower">
    <div class="container-fluid">

        <div class="main-box">
            <div class="logo-box">
                <div class="logo"><a href="<?php echo e(route('home')); ?>"><img src="<?php echo e(asset('uploads/'.$logo_photo)); ?>" alt=""></a></div>
            </div>

            <div class="nav-outer">
                <nav class="nav main-menu">
                    <ul class="navigation">
                        <?php
                        $menu_data = App\Models\Menu::get();
                        $menu_item = array();
                        ?>
                        <?php $__currentLoopData = $menu_data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                            $menu_item[$row->name] = $row->status;
                            ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                        <?php if($menu_item['Home Page'] == 'Show All'): ?>
                        <li class="<?php echo e((Request::is('/')) ? 'current' : ''); ?> dropdown"><a href="javascript:void;"><?php echo e(__('Home')); ?></a>
                            <ul>
                                <li><a href="javascript:void(0);" onclick="submitForm('home_one')"><?php echo e(__('Home Layout 1')); ?></a></li>
                                <li><a href="javascript:void(0);" onclick="submitForm('home_two')"><?php echo e(__('Home Layout 2')); ?></a></li>
                                <li><a href="javascript:void(0);" onclick="submitForm('home_three')"><?php echo e(__('Home Layout 3')); ?></a></li>
                            </ul>
                            <form id="layoutForm" action="<?php echo e(route('home_change')); ?>" method="post">
                                <?php echo csrf_field(); ?>
                                <input type="hidden" name="layout_url" id="layoutUrl" value="">
                            </form>
                            <script>
                            function submitForm(layout) {
                                document.getElementById('layoutUrl').value = layout;
                                document.getElementById('layoutForm').submit();
                            }
                            </script>
                        </li>
                        <?php endif; ?>


                        <?php if($menu_item['Home Page'] != 'Show All'): ?>
                        <li class="<?php echo e((Request::is('/')) ? 'current' : ''); ?>">
                            <a href="<?php echo e(url('/')); ?>"><?php echo e(__('Home')); ?></a>
                        </li>
                        <?php endif; ?>


                        <?php if($menu_item['About'] == 'Show' || $menu_item['Team Members'] == 'Show' || $menu_item['Testimonials'] == 'Show' || $menu_item['Pricing'] == 'Show' || $menu_item['FAQ'] == 'Show' || $menu_item['Custom Pages'] == 'Show'): ?>
                        <li class="<?php echo e((Route::is('testimonials') || Route::is('faqs') || Route::is('pricing_plans') || Route::is('about') || Route::is('team_members') || Route::is('team_member') || Route::is('custom_page')) ? 'current' : ''); ?> dropdown"><a href="#"><?php echo e(__('Pages')); ?></a>
                            <ul>
                                <?php if($menu_item['About'] == 'Show'): ?>
                                <li><a href="<?php echo e(route('about')); ?>"><?php echo e(__('About Us')); ?></a></li>
                                <?php endif; ?>
                                
                                <?php if($menu_item['Team Members'] == 'Show'): ?>
                                <li><a href="<?php echo e(route('team_members')); ?>"><?php echo e(__('Team Members')); ?></a></li>
                                <?php endif; ?>

                                <?php if($menu_item['Testimonials'] == 'Show'): ?>
                                <li><a href="<?php echo e(route('testimonials')); ?>"><?php echo e(__('Testimonial')); ?></a></li>
                                <?php endif; ?>

                                <?php if($menu_item['Pricing'] == 'Show'): ?>
                                <li><a href="<?php echo e(route('pricing_plans')); ?>"><?php echo e(__('Pricing')); ?></a></li>
                                <?php endif; ?>

                                <?php if($menu_item['FAQ'] == 'Show'): ?>
                                <li><a href="<?php echo e(route('faqs')); ?>"><?php echo e(__('FAQ')); ?></a></li>
                                <?php endif; ?>
                                
                                <?php if($menu_item['Custom Pages'] == 'Show'): ?>
                                    <?php
                                    $custom_pages = App\Models\CustomPage::orderBy('id','asc')->get();
                                    ?>
                                    <?php $__currentLoopData = $custom_pages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <li><a href="<?php echo e(route('custom_page',$row->slug)); ?>"><?php echo e($row->name); ?></a></li>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                <?php endif; ?>
                            </ul>
                        </li>
                        <?php endif; ?>

                        <?php if($menu_item['Services'] == 'Show'): ?>
                        <li class="<?php echo e((Route::is('services') || Route::is('service')) ? 'current' : ''); ?>">
                            <a href="<?php echo e(route('services')); ?>"><?php echo e(__('Services')); ?></a>
                        </li>
                        <?php endif; ?>

                        <?php if($menu_item['Portfolios'] == 'Show'): ?>
                        <li class="<?php echo e((Route::is('portfolios') || Route::is('portfolio')) ? 'current' : ''); ?>">
                            <a href="<?php echo e(route('portfolios')); ?>"><?php echo e(__('Portfolios')); ?></a>
                        </li>
                        <?php endif; ?>

                        <?php if($menu_item['Blog'] == 'Show'): ?>
                        <li class="<?php echo e((Route::is('blog') || Route::is('post') || Route::is('category') || Route::is('tag')) ? 'current' : ''); ?><">
                            <a href="<?php echo e(route('blog')); ?>"><?php echo e(__('Blog')); ?></a>
                        </li>
                        <?php endif; ?>

                        <?php if($menu_item['Contact'] == 'Show'): ?>
                        <li class="<?php echo e((Route::is('contact')) ? 'current' : ''); ?>">
                            <a href="<?php echo e(route('contact')); ?>"><?php echo e(__('Contact')); ?></a>
                        </li>
                        <?php endif; ?>
                    </ul>
                </nav>
            </div>

            <div class="outer-box">
                <div class="ui-btn-outer">
                    <button class="ui-btn ui-btn search-btn">
                        <span class="icon lnr lnr-icon-search"></span>
                    </button>
                </div>

                <a href="tel:<?php echo e($global_setting->top_bar_phone); ?>" class="info-btn">
                    <i class="icon fa fa-phone"></i>
                    <small><?php echo e(__('Call Anytime')); ?></small><?php echo e($global_setting->top_bar_phone); ?>

                </a>

                <div class="mobile-nav-toggler"><span class="icon lnr-icon-bars"></span></div>
            </div>
        </div>
    </div>
</div>


<div class="mobile-menu">
    <div class="menu-backdrop"></div>
    <nav class="menu-box">
        <div class="upper-box">
            <div class="nav-logo"><a href="<?php echo e(url('/')); ?>"><img src="<?php echo e(asset('
            uploads/'.$global_setting->logo_reverse)); ?>" alt="" title=""></a></div>
            <div class="close-btn"><i class="icon fa fa-times"></i></div>
        </div>
        <ul class="navigation clearfix"></ul>
        <ul class="contact-list-one">
            <li>
                <div class="contact-info-box">
                    <i class="icon lnr-icon-phone-handset"></i>
                    <span class="title"><?php echo e(__('Call Now')); ?></span>
                    <a href="tel:<?php echo e($global_setting->top_bar_phone); ?>"><?php echo e($global_setting->top_bar_phone); ?></a>
                </div>
            </li>
            <li>
                <div class="contact-info-box">
                    <span class="icon lnr-icon-envelope1"></span>
                    <span class="title"><?php echo e(__('Send Email')); ?></span>
                    <a href="mailto:<?php echo e($global_setting->top_bar_email); ?>"><?php echo e($global_setting->top_bar_email); ?></a>
                </div>
            </li>
            <li>
                <div class="contact-info-box">
                    <span class="icon lnr-icon-clock"></span>
                    <span class="title"><?php echo e(__('Address')); ?></span>
                    <?php echo e($global_setting->top_bar_address); ?>

                </div>
            </li>
        </ul>

        <?php if($global_setting->facebook !='' || $global_setting->twitter !='' || $global_setting->linkedin !='' || $global_setting->instagram !='' || $global_setting->youtube !='' || $global_setting->pinterest !=''): ?>
        <ul class="social-links">
            
            <?php if($global_setting->facebook !=''): ?>
            <li><a href="<?php echo e($global_setting->facebook); ?>"><i class="fab fa-facebook-f"></i></a></li>
            <?php endif; ?>

            <?php if($global_setting->twitter !=''): ?>
            <li><a href="<?php echo e($global_setting->twitter); ?>"><i class="fab fa-twitter"></i></a></li>
            <?php endif; ?>

            <?php if($global_setting->linkedin !=''): ?>
            <li><a href="<?php echo e($global_setting->linkedin); ?>"><i class="fab fa-linkedin-in"></i></a></li>
            <?php endif; ?>

            <?php if($global_setting->instagram !=''): ?>
            <li><a href="<?php echo e($global_setting->instagram); ?>"><i class="fab fa-instagram"></i></a></li>
            <?php endif; ?>

            <?php if($global_setting->youtube !=''): ?>
            <li><a href="<?php echo e($global_setting->youtube); ?>"><i class="fab fa-youtube"></i></a></li>
            <?php endif; ?>
            
            <?php if($global_setting->pinterest !=''): ?>
            <li><a href="<?php echo e($global_setting->pinterest); ?>"><i class="fab fa-pinterest-p"></i></a></li>
            <?php endif; ?>
        </ul>
        <?php endif; ?>
        
    </nav>
</div><?php /**PATH /opt/homebrew/var/www/phpscriptpoint/amiso/amiso/cms/resources/views/front/layouts/menu.blade.php ENDPATH**/ ?>