<nav class="navbar navbar-expand-lg navbar-light">
    <div class="container">
        <a class="navbar-brand" href="<?php echo e(route('home')); ?>">
            <img src="<?php echo e(url('')); ?>/assets/web/images/logo.png" alt="" class="logo">
        </a>
        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent"
                aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarSupportedContent">
            <ul class="navbar-nav mx-auto mb-2 mb-lg-0">
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['ar','en','/',''])): ?> active <?php endif; ?>" aria-current="page" href="<?php echo e(route('home')); ?>"><?php echo e(__('web.home')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['aboutus'])): ?> active <?php endif; ?>" href="<?php echo e(route('aboutus')); ?>"><?php echo e(__('web.aboutus')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['services'])): ?> active <?php endif; ?>" href="<?php echo e(route('services')); ?>"><?php echo e(__('web.our_services')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['courses'])): ?> active <?php endif; ?>" href="<?php echo e(route('courses.index')); ?>"><?php echo e(__('web.courses')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['units'])): ?> active <?php endif; ?>" href="<?php echo e(route('units')); ?>"><?php echo e(__('web.units')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['news'])): ?> active <?php endif; ?>" href="<?php echo e(route('news')); ?>"><?php echo e(__('web.news')); ?></a>
                </li>
                <li class="nav-item">
                    <a class="nav-link <?php if(in_array(\Request::segment(count(request()->segments())) , ['contactus'])): ?> active <?php endif; ?>" href="<?php echo e(route('contactus')); ?>"><?php echo e(__('web.contactus')); ?></a>
                </li>
            </ul>
            <?php if(\Auth::user()): ?>
                <a href="<?php echo e(route('profile')); ?>" class="butn sub_butn"> <span> <?php echo e(__('web.profile')); ?> </span> </a>
                <a href="<?php echo e(route('logout')); ?>" class="butn ms-2"> <span> <?php echo e(__('web.logout')); ?> </span> </a>
            <?php else: ?>
                <a href="<?php echo e(route('regist')); ?>" class="butn sub_butn"> <span> <?php echo e(__('web.regist')); ?> </span> </a>
                <a href="<?php echo e(route('login')); ?>" class="butn ms-2"> <span> <?php echo e(__('web.login')); ?> </span> </a>
            <?php endif; ?>
        </div>
    </div>
</nav>
<?php /**PATH /Applications/MAMP/htdocs/ntc/resources/views/web/layouts/menu.blade.php ENDPATH**/ ?>
