-
-
- @include('pages/page-display')
-
-
-
-
-
-
- - -
- Created {{ $page->created_at->diffForHumans() }} @if($page->createdBy) by {{$page->createdBy->name}} @endif +@section('sidebar') + @if($book->restricted || ($page->chapter && $page->chapter->restricted) || $page->restricted) +
+
+ @endif
- @if($page->restricted)
- @if(userCan('restrictions-manage', $page))
- Page Permissions Active
- @else
- Page Permissions Active
- @endif
- @icon('permission') {{ trans('entities.permissions') }}
+
+
+ @endif
-
+
+ @if($book->restricted)
+ @if(userCan('restrictions-manage', $book))
+ @icon('lock'){{ trans('entities.books_permissions_active') }}
+ @else
+ @icon('lock'){{ trans('entities.books_permissions_active') }}
+ @endif
- Last Updated {{ $page->updated_at->diffForHumans() }} @if($page->updatedBy) by {{$page->updatedBy->name}} @endif - - -
- - Last Updated {{ $page->updated_at->diffForHumans() }} @if($page->updatedBy) by {{$page->updatedBy->name}} @endif - - -
-
- @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
-
+ @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->chapter && $page->chapter->restricted) - @if(userCan('restrictions-manage', $page->chapter)) - Chapter Permissions Active - @else - Chapter Permissions Active - @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 +
+ + @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->chapter && $page->chapter->restricted) - @if(userCan('restrictions-manage', $page->chapter)) - Chapter Permissions Active - @else - Chapter Permissions Active - @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->tags->count() > 0) +
+
+ @endif
+
+ @if ($page->attachments->count() > 0)
+ @icon('tag') {{ trans('entities.page_tags') }}
+
+ @include('components.tag-list', ['entity' => $page])
+
+
+
+ @endif
+
+ @if (isset($pageNav) && count($pageNav))
+ @icon('attach') {{ trans('entities.pages_attachments') }}
+
+ @foreach($page->attachments as $attachment)
+
+
- @endif
- @include('pages/sidebar-tree-list', ['book' => $book, 'sidebarTree' => $sidebarTree])
+ @endforeach
+
+
+ @endif
+ @icon('open-book') {{ trans('entities.pages_navigation') }}
+
+
+
+
- @include('partials/highlight')
+ @include('partials/book-tree', ['book' => $book, 'sidebarTree' => $sidebarTree])
+
@stop
-@section('scripts')
-
+@section('body')
+ @icon('info') {{ trans('common.details') }}
+
+ @include('partials.entity-meta', ['entity' => $page])
+
+
+ @if ($commentsEnabled)
+
+
+
+ @include('pages/page-display')
+
+
+ @icon('link') @icon('include', ['style' => 'display:none;'])
+
+
+
+
+ @include('comments/comments', ['page' => $page])
+
+ @endif
@stop