<div class="navs-wrapper">
    <!--Start navbar-->
    <nav class="navbar navbar-expand-lg ">
        <div class="container-fluid">
            <a href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('home'), [], true)}}" class="navbar-brand">
                <img src="{{asset('assets/web/images/logo-footer.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">
                    <div class="account-links ">
                        <img src="{{asset('assets/web/images/icons/profile.svg')}}" alt="" class="icon">
                        @if(auth()->check() && in_array(auth()->user()->role, ['user', 'provider']))
                            @if(auth()->user()->role == 'user') <a href="{{ route('user.profile') }}">{{__('main.profile')}}</a> @endif
                            @if(auth()->user()->role == 'provider') <a href="{{ route('provider.profile') }}">{{__('main.profile')}}</a> @endif

                        @else
                            <a href="{{ route('userProvider.login') }}">{{__('main.login')}}</a> /
                            <a href="{{ route('user.register') }}">{{__('main.register')}}</a>
                        @endif

                    </div>
                    <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)}}">{{__('main.why_us')}}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {{isActive(route('hall.index'))}}" href="{{route('hall.index')}}"> {{__('main.halls')}}</a>
                    </li>
{{--                    <li class="nav-item">--}}
{{--                        <a class="nav-link" href="#">{{__('main.cities')}}</a>--}}
{{--                    </li>--}}
                    <li class="nav-item">
                        <a class="nav-link {{isActive(route('hall.offerHall'))}}" href="{{route('hall.offerHall')}}"> {{__('main.special_offers')}} </a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link {{isActive(route('contactUs'))}}" href="{{LaravelLocalization::getLocalizedURL(getCurrentLocale(), route('contactUs'), [], true)}}"> {{__('visitorMessages.head')}}</a>
                    </li>
                </ul>
                <a href="{{route('provider.register')}}" class="main-link">{{__('main.provider_register')}}</a>
                <div class="dropdown">
                    <button class="dropdown-btn dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        {{__('main.language')}}
                    </button>
                    <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                        <a class="dropdown-item" href="{{LaravelLocalization::getLocalizedURL('ar', null, [], true)}}">{{__('main.arabic')}}</a>
                        <a class="dropdown-item" href="{{LaravelLocalization::getLocalizedURL('en', null, [], true)}}">{{__('main.english')}}</a>
                    </div>
                </div>
            </div>
        </div>
    </nav>
</div>
