Skip to content

Commit

Permalink
UPDATED - navigation template in 2.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Yannik authored Aug 4, 2019
1 parent 814cf6e commit 3969656
Showing 1 changed file with 24 additions and 31 deletions.
55 changes: 24 additions & 31 deletions resources/views/resources/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,43 +7,36 @@
<span class="sidebar-label">{{ __('Resources') }}</span>
</h3>

@foreach(Nova::groupedResources(request()) as $group => $resources)
@if (count($resources) > 0)
@if (count(Nova::groups(request())) > 1)
<h4 class="ml-8 mb-4 text-xs text-white-50% uppercase tracking-wide">{{ $group }}</h4>
@endif

<ul class="list-reset mb-8">
@foreach($resources as $resource)
@if (! $resource::$displayInNavigation)
@continue
@endif
@foreach($navigation as $group => $resources)
@if (count($groups) > 1)
<h4 class="ml-8 mb-4 text-xs text-white-50% uppercase tracking-wide">{{ $group }}</h4>
@endif

<li class="leading-tight mb-4 ml-8 text-sm">
@if ($resource::singleRecord())
<router-link :to="{
<ul class="list-reset mb-8">
@foreach($resources as $resource)
<li class="leading-tight mb-4 ml-8 text-sm">
@if ($resource::singleRecord())
<router-link :to="{
name: 'detail',
params: {
resourceName: '{{ $resource::uriKey() }}',
resourceId: {{ $resource::singleRecordId() }}
}
}" class="text-white text-justify no-underline dim">
{{ $resource::label() }}
</router-link>
@else
<router-link :to="{
name: 'index',
params: {
resourceName: '{{ $resource::uriKey() }}'
}
}" class="text-white text-justify no-underline dim">
{{ $resource::label() }}
</router-link>
@endif
</li>
@endforeach
</ul>
@endif
{{ $resource::label() }}
</router-link>
@else
<router-link :to="{
name: 'index',
params: {
resourceName: '{{ $resource::uriKey() }}'
}
}" class="text-white text-justify no-underline dim">
{{ $resource::label() }}
</router-link>
@endif
</li>
@endforeach
</ul>
@endforeach
@endif

0 comments on commit 3969656

Please sign in to comment.