<div class="navs-container">
    <!--Start main-nav-->
    <nav class="navbar navbar-expand-lg home-nav">
        <div class="container">
            <a class="navbar-brand" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home'), [], true)}}">
                <img src="{{asset('assets/web/images/logo.svg')}}" alt="" class="logo"/>
            </a>
            <button class="navbar-toggler" type="button" data-toggle="collapse" data-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 m-auto">
                    <li class="nav-item ">
                        <a class="nav-link {{isActive(route('home'))}}" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home'), [], true)}}">{{__('main.home')}}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {{isActive(route('aboutUs'))}}" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('aboutUs'), [], true)}}">{{__('abouts.head')}}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {{isActive(route('ourServices'))}}" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('ourServices'), [], true)}}">{{__('services.head')}}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home').'#service_section', [], true)}}">{{__('features.head')}}</a>
                    </li>
                </ul>
                <div class="nav-links">
{{--                    <a href="#" class="butn borderd-butn"><span class="text">تسجيل دخول</span><span class="hvr"></span></a>--}}
                    <a href="#" class="butn borderd-butn"><span class="text">{{__('main.order_now')}} </span><span class="hvr"></span></a>
                    @if(getCurrentLocale() == 'ar')
                        <a href="{{LaravelLocalization::getLocalizedURL('en', null, [], true)}}" class="lang-butn butn white-butn "><span class="text"> {{__('main.english')}}</span><span class="hvr"></span></a>
                    @endif
                    @if(getCurrentLocale() == 'en')
                        <a href="{{LaravelLocalization::getLocalizedURL('ar', null, [], true)}}" class="lang-butn butn white-butn "><span class="text"> {{__('main.arabic')}}</span><span class="hvr"></span></a>
                    @endif

                </div>
                <div class="themeToggler">
                    <label id="switch" class="switch">
                        <input type="checkbox" onchange="toggleTheme()" id="slider">
                        <span class="slider round"></span>
                    </label>
                </div>
            </div>
        </div>
    </nav>
</div>
