دنت آنلاین
  • خانه
  • تجهیزات دندانپزشکی
      @foreach ( \App\Models\Navbar::where('position','3')->where('parent','0')->orderBy('sort','asc')->get() as $item)
    • {{ $item->title }}
        @foreach( \App\Models\Navbar::where('position','3')->where('parent',$item->id)->orderBy('sort','asc')->get() as $item2)
      • {{ $item2->title }}
          @foreach ( \App\Models\Navbar::where('position','3')->where('parent',$item2->id)->orderBy('sort','asc')->get() as $item3)
        • {{ $item3->title }}
        • @endforeach
      • @endforeach
    • @endforeach
  • @php foreach (\App\Models\Navbar::where('position','1')->where('parent','0')->orderBy('sort','asc')->get() as $item){ $sub_menu = ""; foreach (\App\Models\Navbar::where('position','1')->where('parent',$item->id)->orderBy('sort','asc')->get() as $item_sub){ $sub_menu .= '
  • '.$item_sub->title.'
  • '; } if($sub_menu==""){ @endphp
  • {{ $item->title }}
  • @php }else{ @endphp
  • {{ $item->title }}
      {!! $sub_menu !!}
  • @php } } @endphp
  • خانه
  • تجهیزات دندانپزشکی
      @foreach (\App\Models\Navbar::where('position','3')->where('parent','0')->orderBy('sort','asc')->get() as $item)
    • {{ $item->title }}
      @php $current_index = 0; @endphp @foreach ( \App\Models\Navbar::where('parent',$item->id)->where('col','1')->orderBy('sort','asc')->get() as $item2) @php $current_index++; @endphp @if($current_index==0) {{ $item2->title }} @else {{ $item2->title }} @endif
        @foreach (\App\Models\Navbar::where('parent',$item2->id)->orderBy('sort','asc')->get() as $item3)
      • {{ $item3->title }}
      • @endforeach
      @endforeach
      @php $current_index = 0; @endphp @foreach ( \App\Models\Navbar::where('parent',$item->id)->where('col','2')->orderBy('sort','asc')->get() as $item2) @php $current_index++; @endphp @if($current_index==0) {{ $item2->title }} @else {{ $item2->title }} @endif
        @foreach (\App\Models\Navbar::where('parent',$item2->id)->orderBy('sort','asc')->get() as $item3)
      • {{ $item3->title }}
      • @endforeach
      @endforeach
      @php $current_index = 0; @endphp @foreach ( \App\Models\Navbar::where('parent',$item->id)->where('col','3')->orderBy('sort','asc')->get() as $item2) @php $current_index++; @endphp @if($current_index==0) {{ $item2->title }} @else {{ $item2->title }} @endif
        @foreach (\App\Models\Navbar::where('parent',$item2->id)->orderBy('sort','asc')->get() as $item3)
      • {{ $item3->title }}
      • @endforeach
      @endforeach
      @php $current_index = 0; @endphp @foreach ( \App\Models\Navbar::where('parent',$item->id)->where('col','4')->orderBy('sort','asc')->get() as $item2) @php $current_index++; @endphp @if($current_index==0) {{ $item2->title }} @else {{ $item2->title }} @endif
        @foreach (\App\Models\Navbar::where('parent',$item2->id)->orderBy('sort','asc')->get() as $item3)
      • {{ $item3->title }}
      • @endforeach
      @endforeach
    • @endforeach
  • @foreach (\App\Models\Navbar::where('position','1')->where('parent','0')->orderBy('sort','asc')->get() as $item) @php $sub_menu = ""; foreach (\App\Models\Navbar::where('position','1')->where('parent',$item->id)->orderBy('sort','asc')->get() as $item_sub){ $sub_menu .= '
  • '.$item_sub->title.'
  • '; } @endphp @if($sub_menu=="")
  • {{ $item->title }}
  • @else
  • {{ $item->title }}
      {!! $sub_menu !!}
  • @endif @endforeach
  • حوصله ندارم!