main-header-recursive.blade.php 426 B

12345678910
  1. @if (isset($menu['child']) && count($menu['child']) > 0)
  2. <ul>
  3. @foreach($menu['child'] as $secondMenu)
  4. <li class="{{ empty($secondMenu['child']) ? '' : 'dropdown' }}">
  5. <a href="{{ $secondMenu['PageUri'] }}">{{ $secondMenu['MenuName'] }}</a>
  6. @include('views.layouts.main-header-recursive', [ 'menu' => $secondMenu ])
  7. </li>
  8. @endforeach
  9. </ul>
  10. @endif