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