jeudi 25 mai 2023

how to work submenu when not getting submenu2

`When not Getting Submenu2 My subMenu route not working in this menu and when getting submenu2 only working submenu2 route..

ii will try when not getting submenu2 then submenue route working but when click submenu i saw console route showing but not clickin any one please kindly help for me ....`

@foreach ($menu as $item=>$value)

@foreach($data as $ddata)

@if($value->user_group_id==$ddata->user_group_id)
<li class="nav-item d-sm-inline-block has-treeview menu-close" style="font-size:14px; color:white;">
    <a href="#" class="nav-link">
        <i class="nav-icon fas fa-tachometer-alt fa-lg"></i>
        <p> <i class="right fas fa-angle-left"></i></p>
    </a>

    <ul class="nav nav-treeview">
        @foreach($submenu as $submenus)

        @if($value->menu_item_id==$submenus->menu_item_id)
        <li class="nav-item has-treeview menu-close">
            <a href="" class="nav-link active">
                <i class="far fa-circle nav-icon"></i>
                <i class="right fas fa-angle-left"></i>
            </a>
            @if($submenu2->count()>0)
            <ul class="nav nav-treeview">
                @foreach($submenu2 as $submenus2)

                @if($submenus->sub_menu_id==$submenus2->sub_menu_2)
                <li class="nav-item has-treeview menu-close">
                    <a href="" class="nav-link active">
                        <i class="far fa-circle nav-icon"></i>
                        <i class="right fas fa-angle-left"></i>
                    </a>

                </li>
                @endif
                @endforeach
            </ul>
            @endif
        </li>
        @endif
        @endforeach
    </ul>
</li>
@endif

@endforeach

@endforeach

ii will try when not getting submenu2 then submenue route working but when click submenu i saw console route showing but not clicking ...



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire