{{$book->name}}
{!! $book->descriptionHtml() !!}
@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
@endforeach
@else
{{ trans('entities.books_empty_contents') }}
@if(userCan('page-create', $book))
@icon('page')
{{ trans('entities.books_empty_create_page') }}
@endif
@if(userCan('chapter-create', $book))
@icon('chapter')
{{ trans('entities.books_empty_add_chapter') }}
@endif