{{$book->name}}
+
+
- {!! nl2br(e($book->description)) !!}
+ @if(count($bookChildren) > 0) +
+ @foreach($bookChildren as $childElement)
+ @if($childElement->isA('chapter'))
+ @include('chapters.parts.list-item', ['chapter' => $childElement])
+ @else
+ @include('pages.parts.list-item', ['page' => $childElement])
@endif
- @if(userCan('restrictions-manage', $book))
- - @icon('lock'){{ trans('entities.permissions') }}
+ @endforeach
+
+ @else
+
+
+
@endif
+
{{ trans('entities.books_empty_contents') }}
+ +
+ @if(userCan('page-create', $book))
+
+ @icon('page')
+ {{ trans('entities.books_empty_create_page') }}
+
@endif
- @if(userCan('book-delete', $book))
- - @icon('delete'){{ trans('common.delete') }}
+ @if(userCan('chapter-create', $book))
+
+ @icon('chapter')
+ {{ trans('entities.books_empty_add_chapter') }}
+
@endif
-
+
+