Commit 5bede281 by Bagus Pambudi

menu layout 1

parent 210c7f5c
...@@ -61,32 +61,32 @@ ...@@ -61,32 +61,32 @@
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1) @elseif($setting['layout_menu'] == 1)
<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 !!} @else {!! $value->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)
<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 !!} @else {!! $valuec->name !!} @endif</a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b> <b> <a href="#">@if ($valuec->rDe) {!! $valuec->rDe->name !!} @else {!! $valuec->name !!} @endif</a> </b>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach ($menu as $valuec2) @foreach ($menu as $valuec2)
@if($valuec2->parent == $valuec->id) @if($valuec2->parent == $valuec->id)
@if($valuec2->url) @if($valuec2->url)
<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 !!} @else {!! $valuec2->name !!} @endif</a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rDe->name !!}</a></b> <b> <a href="#">@if ($valuec2->rDe) {!! $valuec2->rDe->name !!} @else {!! $valuec2->name !!} @endif</a></b>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach($menu as $valuec3) @foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id) @if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rDe->name !!}</a></li> <li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">@if ($valuec3->rDe) {!! $valuec3->rDe->name !!} @else {!! $valuec3->name !!} @endif</a></li>
@endif @endif
......
...@@ -61,12 +61,12 @@ ...@@ -61,12 +61,12 @@
</ul> </ul>
</li> </li>
@elseif($setting['layout_menu'] == 1) @elseif($setting['layout_menu'] == 1)
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">{!! $value->rEn->name !!} <div class="arrow-up"></div></a> <li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">@if ($value->rEn) {!! $value->rEn->name !!} @else {!! $value->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)
<li><a href="{!! url((string)$valuec->url) !!}">{!! $valuec->rEn->name !!}</a></li> <li><a href="{!! url((string)$valuec->url) !!}">@if ($valuec->rEn) {!! $valuec->rEn->name !!} @else {!! $valuec->name !!} @endif </a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec->name !!}</a> </b> <b> <a href="#">{!! $valuec->name !!}</a> </b>
...@@ -75,18 +75,18 @@ ...@@ -75,18 +75,18 @@
@if($valuec2->parent == $valuec->id) @if($valuec2->parent == $valuec->id)
@if($valuec2->url) @if($valuec2->url)
<li><a href="{!! url((string)$valuec2->url) !!}">{!! $valuec2->rEn->name !!}</a></li> <li><a href="{!! url((string)$valuec2->url) !!}">@if ($valuec2->rEn) {!! $valuec2->rEn->name !!} @else {!! $valuec2->name !!} @endif </a></li>
@else @else
<li class="dropdown-submenu"> <li class="dropdown-submenu">
<b> <a href="#">{!! $valuec2->rEn->name !!}</a></b> <b> <a href="#">@if ($valuec2->rEn) {!! $valuec2->rEn->name !!} @else {!! $valuec2->name !!} @endif</a></b>
<ul class="dropdown-menu"> <ul class="dropdown-menu">
@foreach($menu as $valuec3) @foreach($menu as $valuec3)
@if($valuec3->parent == $valuec2->id) @if($valuec3->parent == $valuec2->id)
<li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">{!! $valuec3->rEn->name !!}</a></li> <li><a href="{!! url((string)$valuec3->url) !!}" target="_blank">@if ($valuec3->rEn) {!! $valuec3->rEn->name !!} @else {!! $valuec3->name !!} @endif</a></li>
@endif @endif
......
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