/home/thegtkjw/cresviafinancial.com/project__549d4a8/resources/views/partials/front/nav.blade.php
<div class="header-btm-area">
    <div class="container z-1">
        <div class="row align-items-center">
            <div class="col-3">
                <a href="{{ route('front.index') }}">
                    <img src="{{ asset('assets/images/' . $gs->logo) }}" alt="logo" class="logo">
                </a>
            </div>
            <div class="col-lg-6  d-none d-lg-block">
                <nav>
                    <ul class="bb-menu">
                        @foreach (json_decode($gs->menu, true) as $key => $menue)
                        @php
                            // Get current path and menu href path
                            $currentPath = Request::path();
                          
                            if ($currentPath == "/") {
                                $menuPath = ltrim($menue['href'], '');
                            } else {
                                $menuPath = ltrim($menue['href'], '/'); 
                            } 

                        @endphp
                        <li class="has-submenu {{ $currentPath == $menuPath ? 'active_link' : '' }}">
                            <a href="{{ url($menue['href']) }}"
                                target="{{ $menue['target'] == 'blank' ? '_blank' : '_self' }}">
                                {{ $menue['title'] }}
                            </a>
                        </li>
                    @endforeach

                    @if ($gs->is_contact)
                        <li class="{{ Request::routeIs('front.contact') ? 'active_link' : '' }}">
                            <a href="{{ route('front.contact') }}">@lang('Contact')</a>
                        </li>
                    @endif

                    </ul>
                </nav>
            </div>
            <div class="col-9 col-lg-3 d-flex align-items-center justify-content-end gap-2">
                @if (!auth()->user())
                    <a href="{{ route('user.register') }}" class="d-none d-sm-flex template-btn secondary-btn">
                        @lang('Sign Up')
                    </a>
                    <a href="{{ route('user.login') }}" class="d-none d-sm-flex template-btn primary-btn">
                        @lang('Login Now')
                    </a>
                @else
                    <a href="{{ route('user.dashboard') }}" class="d-none d-sm-flex template-btn primary-btn">
                        @lang('Dashboard')
                    </a>
                @endif

                <button class="ms-4 d-lg-none mobile-menu-toggle">

                    <svg fill="#ffffff" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" width="50" height="50"
                        viewBox="0 0 50 50">
                        <path
                            d="M 5 9 L 5 11 L 45 11 L 45 9 L 5 9 z M 5 24 L 5 26 L 45 26 L 45 24 L 5 24 z M 5 39 L 5 41 L 45 41 L 45 39 L 5 39 z">
                        </path>
                    </svg>
                </button>
            </div>
        </div>
    </div>
</div>