- @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
-
-
- @if($book->restricted)
- @if(userCan('restrictions-manage', $book))
-
Book Permissions Active
- @else
-
Book Permissions Active
- @endif
-
+@section('sidebar')
+ @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted)
+
+ @endif
+
+ @if($page->tags->count() > 0)
+
+
@icon('tag') {{ trans('entities.page_tags') }}
+
+
+ @endif
+
+ @if ($page->attachments->count() > 0)
+
+
@icon('attach') {{ trans('entities.pages_attachments') }}
+
+ @foreach($page->attachments as $attachment)
+
- @endif
- @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree])
+ @endforeach
+
+
+ @endif
+
+ @if (isset($pageNav) && count($pageNav))
+
+
@icon('open-book') {{ trans('entities.pages_navigation') }}
+
+
+
+ @endif
+
+
@icon('info') {{ trans('common.details') }}
+
+ @include('partials.entity-meta', ['entity' => $page])
- @include('partials/highlight')
+ @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
+
+@stop
+
+@section('body')
+
+
+
+
+ @icon('link') @icon('include', ['style' => 'display:none;'])
+
+
+
+
+
+ @include('pages/page-display')
+
+
+ @if ($commentsEnabled)
+
+ @include('comments/comments', ['page' => $page])
+
+ @endif
@stop
@section('scripts')