- @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
-
-
- @if($book->restricted)
- @if(userCan('restrictions-manage', $book))
-
{{ trans('entities.books_permissions_active') }}
- @else
-
{{ trans('entities.books_permissions_active') }}
- @endif
-
+@section('sidebar')
+ @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
+
+ @endif
+
+ @if($page->tags->count() > 0)
+
+
{{ trans('entities.page_tags') }}
+
+
+ @endif
+
+ @if ($page->attachments->count() > 0)
+
+
{{ trans('entities.pages_attachments') }}
+
+ @foreach($page->attachments as $attachment)
+
- @endif
+ @endforeach
+
+
+ @endif
+
+ @if (isset($pageNav) && count($pageNav))
+
+
{{ trans('entities.pages_navigation') }}
+
+
+
+
+ @endif
+ @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
+
+
{{ trans('common.details') }}
+
+ @include('partials.entity-meta', ['entity' => $page])
+
+
+@stop
- @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree, 'pageNav' => $pageNav])
-
- @include('partials/highlight')
+ @include('pages/page-display')
+
+