I have a dynamic menu and submenu in my website and want to make not clickable menu to only those menu that have submenu.
here is code @foreach($levels as $category) slug}}" title="">
</a></li>
@if($category->children->count() >0 )
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<b class="caret"></b></a>
<ul class="dropdown-menu">
@foreach($category->children as $child)
<li><a href="/category/"></a></li>
@endforeach
</ul>
</li>
@else
@endif
@endforeach
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire