@foreach ( $custom_menu as $index => $cm ) @if ( $cm->permalink == 'products' )
  • {!! $cm->custom_name !!}
      @foreach( $categories as $category )
    • {{ $category->name }}
    • @endforeach
  • @elseif ( $cm->permalink == 'brands' )
  • {!! $cm->custom_name !!}
      @foreach( $brands as $brand )
    • {{ $brand->title }}
    • @endforeach
  • @else @if($cm->permalink !== '')
  • {!! $cm->custom_name !!}
  • @endif @endif @endforeach