@foreach ($menu as $value)
  @if(!$value->parent)
    @if($value->url)
      <li><a href="{!! url((string)$value->url) !!}">@if ($value->rZh) {!! $value->rZh->name !!} @endif</a></li>
    @else
      <li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rZh) {!! $value->rZh->name !!} @endif <div class="arrow-up"></div></a>
      <ul class="dropdown-menu" role="menu">
          <div class="yamm-content">
            <div class="row">
          @foreach ($menu as $valuec)
            @if($valuec->parent == $value->id)
            <ul class="col-sm-4" style="text-transform: capitalize;">
              @if($valuec->url)
                @if ($valuec->rZh)
                <li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rZh->name !!}</a></li>
                @endif
              @else
                <!-- <li class="dropdown-submenu"> -->
                  @if ($valuec->rZh)
                  <h3>

                 <b> <a href="#">{!! $valuec->rZh->name !!}</a> </b>
                  </h3>
                  @endif
                  <!-- <ul class="dropdown-menu"> -->
                    @foreach ($menu as $valuec2)
                      @if($valuec2->parent == $valuec->id)
                        @if($valuec2->url)
                          @if ($valuec2->rZh)
                            <li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rZh->name !!}</a></li>
                          @endif
                         @else
                              <li class="dropdown-submenu">
                                  @if ($valuec2->rZh)
                                  <b> <a href="#">{!! $valuec2->rZh->name !!}</a></b>
                                  @endif
                                  <ul class="dropdown-menu">
                                    @foreach($menu as $valuec3)
                               
                                     @if($valuec3->parent == $valuec2->id)
                                      @if ($valuec3->rZh)
                                       <li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rZh->name !!}</a></li>
                                      @endif
                                     @endif
                               
                                    @endforeach
                                 </ul>
                              </li>
                        @endif
                      @endif
                    @endforeach
                  <!-- </ul>
                </li> -->
              @endif
              </ul>
            @endif
          @endforeach
          </div>
          </div>
          </ul>
      </li>
    @endif
  @endif
@endforeach
