fixed bug homayon menu don't have children

master
A1Gard 7 days ago
parent b3b6fcfaf7
commit fe99515a45

@ -137,7 +137,7 @@
<a href="{{$item->webUrl()}}"> <a href="{{$item->webUrl()}}">
{{$item->title}} {{$item->title}}
</a> </a>
@if($item->dest && $item->dest->children()->where('hide',false)->count() > 0) @if($item->dest && $item->dest->children != null && $item->dest->children()->where('hide',false)->count() > 0)
<ul class="px-1 border-start border-white"> <ul class="px-1 border-start border-white">
@foreach($item->dest->children()->where('hide',false)->get() as $itm) @foreach($item->dest->children()->where('hide',false)->get() as $itm)
<li> <li>

@ -1,10 +1,10 @@
{ {
"name": "HomayonMenu", "name": "HomayonMenu",
"version": "1.0", "version": "1.1",
"author": "xStack", "author": "xStack",
"email": "xshop@xstack.ir", "email": "xshop@xstack.ir",
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"url": "https:\/\/xstack.ir", "url": "https:\/\/xstack.ir",
"author_url": "https:\/\/4xmen.ir", "author_url": "https:\/\/4xmen.ir",
"packages": [] "packages": []
} }

Loading…
Cancel
Save