外贸易导航多级
2023-06-12 08:41:41 浏览:786 作者:保利尼奥
<ul class="x-menu">
@foreach (inject('nav')->nav() as $value)
<li>
<a href="{{ $value->link...
<ul class="x-menu">
@foreach (inject('nav')->nav() as $value)
<li>
<a href="{{ $value->linkurl }}">{{ $value->description->cname or $value->cname }}</a>
@if(!$value->children->isEmpty())
<ul class="x-sub-menu">
@foreach ($value->children as $val)
<li><a href="{{ $val->linkurl }}">{{ $val->description->cname or $val->cname}}</a>
<div class="secc">
@foreach ($val->children as $vals)
<a href="{{ $vals->linkurl }}">{{ $vals->description->cname or $vals->cname}}</a>
@endforeach
</div>
</li>
@endforeach
</ul>
@endif
</li>
@endforeach
</ul>
评论区