Bella Passi

  • Back
  • Pinned

  • @foreach(dymaniMenus('0') as $ParentKey=>$ParentValue) @if(auth()->user()->can($ParentValue->url)) @if(!empty(json_decode(dymaniMenus($ParentValue->id))))
  • {{$ParentValue->name}}
      @foreach(dymaniMenus($ParentValue->id) as $ChildKey=>$ChildValue) @if(auth()->user()->can($ChildValue->url))
    • {{$ChildValue->name}}
    • @endif @endforeach
  • @else
  • {{$ParentValue->name}}
  • @endif @endif @endforeach