@php $links = json_decode($menus, true); @endphp @foreach ($links as $link) @php $href = getHref($link); @endphp @if (!array_key_exists("children",$link))
  • {{$link["text"]}}
  • @else
  • {{$link["text"]}}
      @foreach ($link["children"] as $level2) @php $l2Href = getHref($level2); @endphp
    • {{$level2["text"]}}
    • @endforeach
  • @endif @endforeach @guest
  • {{__('Login')}}
  • @endguest @auth
  • {{__('Dashboard')}}
  • @endauth
@guest
{{__('Login')}}
@endguest @auth
{{__('Dashboard')}}
@endauth
@if(!empty($currentLang)) @endif