<nav class="navbar navbar-expand-lg navbar-light">
    <div class="container">
        <a class="navbar-brand" href="{{route('home')}}">
            <img src="{{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 @if(in_array(\Request::segment(count(request()->segments())) , ['ar','en','/',''])) active @endif" aria-current="page" href="{{route('home')}}">{{__('web.home')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['aboutus'])) active @endif" href="{{route('aboutus')}}">{{__('web.aboutus')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['services'])) active @endif" href="{{route('services')}}">{{__('web.our_services')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['courses'])) active @endif" href="{{route('courses.index')}}">{{__('web.courses')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['partners'])) active @endif" href="{{route('partners')}}">{{__('web.partners')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['news'])) active @endif" href="{{route('news')}}">{{__('web.news')}}</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link @if(in_array(\Request::segment(count(request()->segments())) , ['contactus'])) active @endif" href="{{route('contactus')}}">{{__('web.contactus')}}</a>
                </li>
            </ul>
            @if(\Auth::user())
                <!--<a href="{{route('profile')}}" class="butn sub_butn"> <span> {{__('web.profile')}} </span> </a>-->
                <!--<a href="{{route('logout')}}" class="butn ms-2"> <span> {{__('web.logout')}} </span> </a>-->
                <div class="dropdown">
                  <button class="butn dropdown-toggle bg-white" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                        {{__('web.profile')}}
                  </button>
                  <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                    <li><a class="dropdown-item" href="{{route('profile')}}">{{__('web.profile')}}</a></li>
                    <li><a class="dropdown-item" href="{{route('logout')}}">{{__('web.logout')}}</a></li>
                  </ul>
                </div>
            @else
                <div class="dropdown">
                  <button class="butn dropdown-toggle bg-white" type="button" id="dropdownMenuButton1" data-bs-toggle="dropdown" aria-expanded="false">
                        {{__('web.login')}}
                  </button>
                  <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton1">
                    <li><a class="dropdown-item" href="{{route('regist')}}">{{__('web.regist')}}</a></li>
                    <li><a class="dropdown-item" href="{{route('login')}}">{{__('web.login')}}</a></li>
                  </ul>
                </div>
                <!--<a href="{{route('regist')}}" class="butn sub_butn"> <span> {{__('web.regist')}} </span> </a>-->
                <!--<a href="{{route('login')}}" class="butn ms-2"> <span> {{__('web.login')}} </span> </a>-->
            @endif
        </div>
    </div>
</nav>
