@php
$path = theme()->getPagePath();
$path_parts = explode("/", $path);
$title = util()->camelize($path_parts[1], '-');
$options = array(
'skip-active' => false,
'home' => array(
'title' => $title,
'active' => false
)
);
$menu = new \App\Core\Adapters\Menu(theme()->getOption('menu', 'documentation'), theme()->getPagePath());
$breadcrumb = $menu->getBreadcrumb($options);
@endphp
{{ __('Documentation') }}
v{{ theme()->getVersion() }}
@if (!empty(theme()->hasOption('page', 'description')) && theme()->getOption('layout', 'page-title/description') !== false)
{{ theme()->getOption('page', 'description') }}
@endif
@if (!empty($breadcrumb))
@foreach ($breadcrumb as $item)
@if ( $item['active'] === true )
-
{{ $item['title'] }}
@if (theme()->getOption('page', 'exclusive') === true)
Exclusive
@endif
@else
-
@if ( !empty($item['path']) )
{{ $item['title'] }}
@else
{{ $item['title'] }}
@endif
@endif
@if (next($breadcrumb))
-
@endif
@endforeach
@endif