    <!-- Start finlance_header area -->
    <header class="finlance_header header_v1">
        <div class="container-fluid">
            <div class="top_header">
                <div class="row align-items-center">
                    <div class="col-lg-6 d-none d-lg-block">
                        <div class="top_left">
                            <span><i class="fas fa-headphones"></i><a href="tel:{{$bs->support_phone}}">{{$bs->support_phone}}</a></span>
                            <span><i class="far fa-envelope"></i><a href="mailto:{{$bs->support_email}}">{{$bs->support_email}}</a></span>
                        </div>
                    </div>
                    <div class="col-lg-6 col-12">
                        <div class="top_right d-flex align-items-center">
                            <ul class="social">
                                @foreach ($socials as $key => $social)
                                    <li><a href="{{$social->url}}"><i class="{{$social->icon}}"></i></a></li>
                                @endforeach
                            </ul>

                            @if (!empty($currentLang))
                                <div class="dropdown">
                                    <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><i class="fas fa-globe"></i>{{convertUtf8($currentLang->name)}}
                                    </button>
                                    <div class="dropdown-menu">
                                        @foreach ($langs as $key => $lang)
                                            <a class="dropdown-item" href='{{ route('changeLanguage', $lang->code) }}'>{{convertUtf8($lang->name)}}</a>
                                        @endforeach
                                    </div>
                                </div>
                            @endif

                            @if ($bex->is_user_panel == 1)
                                @guest
                                <ul class="login">
                                    <li><a href="{{route('user.login')}}">{{__('Login')}}</a></li>
                                </ul>
                                @endguest
                                @auth
                                <div class="dropdown ml-4">
                                    <button type="button" class="btn dropdown-toggle" data-toggle="dropdown"><i class="far fa-user mr-1"></i> {{Auth::user()->username}}
                                    </button>
                                    <div class="dropdown-menu">
                                        <a class="dropdown-item" href="{{route('user-dashboard')}}">{{__('Dashboard')}}</a>
                                        @if ($bex->recurring_billing == 1)
                                            <a class="dropdown-item" href="{{route('user-packages')}}">{{__('Packages')}}</a>
                                        @endif
                                        @if ($bex->is_shop == 1 && $bex->catalog_mode == 0)
                                            <a class="dropdown-item" href="{{route('user-orders')}}">{{__('Product Orders')}} </a>
                                        @endif
                                        @if ($bex->recurring_billing == 0)
                                            <a class="dropdown-item" href="{{route('user-package-orders')}}">{{__('Package Orders')}} </a>
                                        @endif

                                        @if ($bex->is_course == 1)
                                        <a class="dropdown-item" href="{{route('user.course_orders')}}" >{{__('Courses')}}</a>
                                        @endif

                                        @if ($bex->is_event == 1)
                                        <a class="dropdown-item" href="{{route('user-events')}}" >{{__('Event Bookings')}}</a>
                                        @endif

                                        @if ($bex->is_donation == 1)
                                        <a class="dropdown-item" href="{{route('user-donations')}}" >{{__('Donations')}}</a>
                                        @endif

                                        @if ($bex->is_ticket == 1)
                                            <a class="dropdown-item" href="{{route('user-tickets')}}">{{__('Support Tickets')}}</a>
                                        @endif
                                        <a class="dropdown-item" href="{{route('user-profile')}}">{{__('Edit Profile')}}</a>
                                        @if ($bex->is_shop == 1 && $bex->catalog_mode == 0)
                                            <a class="dropdown-item" href="{{route('shpping-details')}}">{{__('Shipping Details')}}</a>
                                            <a class="dropdown-item" href="{{route('billing-details')}}">{{__('Billing Details')}}</a>
                                            <a class="dropdown-item" href="{{route('user-reset')}}">{{__('Change Password')}}</a>
                                        @endif
                                        <a class="dropdown-item" href="{{route('user-logout')}}" target="_self">{{__('Logout')}}</a>
                                    </div>
                                </div>
                                @endauth
                            @endif

                        </div>
                    </div>
                </div>
            </div>
            <div class="header_navigation">
                <div class="site_menu">
                    <div class="row align-items-center">
                        <div class="col-lg-2 col-sm-12">
                            <div class="brand">
                                <a href="{{route('front.index')}}"><img data-src="{{asset('assets/front/img/'.$bs->logo)}}" class="img-fluid lazy" alt=""></a>
                            </div>
                        </div>
                        <div class="{{$bs->is_quote == 1 ? 'col-lg-8' : 'col-lg-10'}}">
                            <div class="primary_menu">
                                <nav class="main-menu {{$bs->is_quote == 0 ? 'text-right' : ''}}">
                                    @php
                                        $links = json_decode($menus, true);
                                        //  dd($links);
                                    @endphp
                                    <ul>

                                        @foreach ($links as $link)
                                            @php
                                                $href = getHref($link);
                                            @endphp

                                            @if (strpos($link["type"], '-megamenu') !==  false)
                                                @includeIf('front.gym.partials.mega-menu')

                                            @else

                                                @if (!array_key_exists("children",$link))
                                                    {{--- Level1 links which doesn't have dropdown menus ---}}
                                                    <li><a href="{{$href}}" target="{{$link["target"]}}">{{$link["text"]}}</a></li>

                                                @else
                                                    <li class="menu-item-has-children">
                                                        {{--- Level1 links which has dropdown menus ---}}
                                                        <a href="{{$href}}" target="{{$link["target"]}}">{{$link["text"]}}</a>

                                                        <ul class="sub-menu">



                                                            {{-- START: 2nd level links --}}
                                                            @foreach ($link["children"] as $level2)
                                                                @php
                                                                    $l2Href = getHref($level2);
                                                                @endphp

                                                                <li @if(array_key_exists("children", $level2)) class="submenus" @endif>
                                                                    <a  href="{{$l2Href}}" target="{{$level2["target"]}}">{{$level2["text"]}}</a>

                                                                    {{-- START: 3rd Level links --}}
                                                                    @php
                                                                        if (array_key_exists("children", $level2)) {
                                                                            create_menu($level2);
                                                                        }
                                                                    @endphp
                                                                    {{-- END: 3rd Level links --}}

                                                                </li>
                                                            @endforeach
                                                            {{-- END: 2nd level links --}}



                                                        </ul>

                                                    </li>
                                                @endif


                                            @endif



                                        @endforeach
                                    </ul>
                                </nav>
                            </div>
                        </div>
                        @if ($bs->is_quote == 1)
                            <div class="col-lg-2">
                                <div class="button_box">
                                    <a href="{{route('front.quote')}}" class="finlance_btn">{{__('Get Quote')}}</a>
                                </div>
                            </div>
                        @endif
                        <div class="col-sm-12">
                            <div class="mobile_menu"></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </header><!-- End finlance_header area -->
