{{-- PAGES --}}
{{ _('Pages') }}
@if ($pages->count())
    @foreach ($pages as $page)
  • {!! link_to_route('page.show', $page, [$page->getKey()]) !!}
  • @endforeach
@else

{{ _('This category has no pages yet') }}

@endif @if ($subpages->count())
{{ _('Pages on subcategories') }}
    @foreach ($subpages as $page)
  • {!! link_to_route('page.show', $page, [$page->getKey()]) !!}
  • @endforeach
@endif

{!! link_to_route('page.create', _('Create page'), ['category_id' => $resource->getKey()], ['class' => 'small success button']) !!}

{{-- SUBCATEGORIES --}}
{{ _('Subcategories') }}
@if ($subcategories->count()) {!! $tree !!} @else

{{ _('This category has no subcategories') }}

@endif

{!! link_to_route("$route.create", _('Create subcategory'), ['parent_id' => $resource->getKey()], ['class' => 'small success button']) !!}