Commit a38b5467 by Aan Choesni Herlingga

bug fix menu if null

parent d854ed7f
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
@if($value->url) @if($value->url)
<li><a href="{!! url((string)$value->url) !!}">@if ($value->rDe) {!! $value->rDe->name !!} @endif</a></li> <li><a href="{!! url((string)$value->url) !!}">@if ($value->rDe) {!! $value->rDe->name !!} @endif</a></li>
@else @else
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rDe->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rDe) {!! $value->rDe->name !!} @endif<div class="arrow-up"></div></a>
<ul class="dropdown-menu" role="menu"> <ul class="dropdown-menu" role="menu">
@foreach ($menu as $valuec) @foreach ($menu as $valuec)
@if($valuec->parent == $value->id) @if($valuec->parent == $value->id)
@if($valuec->url) @if($valuec->url)
@if ($valuec->rDe) @if ($valuec->rDe)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rDe->name !!}</a></li> <li><a href="{!! url((string)$valuec->url) !!}">@if ($valuec->rDe) {!! $valuec->rDe->name !!}@endif</a></li>
@endif @endif
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
@foreach ($menu as $valuec2) @foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id) @if($valuec2->parent == $valuec->id)
@if ($valuec2->rDe) @if ($valuec2->rDe)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rDe->name !!}</a></li> <li><a href="{!! url((string)$valuec2->url) !!}">@if ($valuec2->rDe) {!! $valuec2->rDe->name !!} @endif</a></li>
@endif @endif
@endif @endif
@endforeach @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