Commit 50ea468b by Bagus Pambudi

menu v1

parent 9bd79aaa
...@@ -3,50 +3,26 @@ ...@@ -3,50 +3,26 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">{!! $value->name !!}</a></li> <li><a href="{!! url((string)$value->url) !!}">{!! $value->name !!}</a></li>
@else @else
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
<div class="yamm-content"> @foreach ($menu as $valuec)
<div class="row"> @if($valuec->parent == $value->id)
@foreach ($menu as $valuec) @if($valuec->url)
@if($valuec->parent == $value->id) <li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->name !!}</a></li>
<ul class="col-sm-4" style="text-transform: capitalize;"> @else
@if($valuec->url) <li class="dropdown-submenu">
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->name !!}</a></li> <a href="#">{!! $valuec->name !!}</a>
@else <ul class="dropdown-menu">
<!-- <li class="dropdown-submenu"> --> @foreach ($menu as $valuec2)
<h3> @if($valuec2->parent == $valuec->id)
<b> <a href="#">{!! $valuec->name !!}</a></b> <li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->name !!}</a></li>
</h3> @endif
<!-- <ul class="dropdown-menu"> --> @endforeach
@foreach ($menu as $valuec2) </ul>
@if($valuec2->parent == $valuec->id) </li>
<li><a href="{!! url((string)$valuec2->url) !!}" target="_blank">{!! $valuec2->name !!}</a></li> @endif
{{-- @else @endif
<li class="dropdown-submenu"> @endforeach
<b> <a href="#">{!! $valuec2->name !!}</a></b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->name !!}</a></li>
@endif
@endforeach
</ul>
</li>--}}
@endif
@endforeach
<!-- </ul> -->
<!-- </li> -->
@endif
</ul>
@endif
@endforeach
</div>
</div>
</ul> </ul>
</li> </li>
@endif @endif
......
@foreach ($menu as $value)
@if(!$value->parent)
@if($value->url)
<li><a href="{!! url((string)$value->url) !!}">{!! $value->name !!}</a></li>
@else
<li class="dropdown yamm-fw"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->name !!} <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)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->name !!}</a></li>
@else
<!-- <li class="dropdown-submenu"> -->
<h3>
<b> <a href="#">{!! $valuec->name !!}</a></b>
</h3>
<!-- <ul class="dropdown-menu"> -->
@foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id)
<li><a href="{!! url((string)$valuec2->url) !!}" target="_blank">{!! $valuec2->name !!}</a></li>
{{-- @else
<li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->name !!}</a></b>
<ul class="dropdown-menu">
@foreach ($menu as $valuec3)
@if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->name !!}</a></li>
@endif
@endforeach
</ul>
</li>--}}
@endif
@endforeach
<!-- </ul> -->
<!-- </li> -->
@endif
</ul>
@endif
@endforeach
</div>
</div>
</ul>
</li>
@endif
@endif
@endforeach
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment