@extends('layouts.tri') @section('container-attrs') component="entity-search" option:entity-search:entity-id="{{ $book->id }}" option:entity-search:entity-type="book" @stop @push('social-meta') @if($book->coverInfo()->exists()) @endif @endpush @include('entities.body-tag-classes', ['entity' => $book]) @section('body')

{{$book->name}}

{!! $book->descriptionInfo()->getHtml() !!}
@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(\BookStack\Permissions\Permission::PageCreate, $book)) @icon('page') {{ trans('entities.books_empty_create_page') }} @endif @if(userCan(\BookStack\Permissions\Permission::ChapterCreate, $book)) @icon('chapter') {{ trans('entities.books_empty_add_chapter') }} @endif
@endif
@include('entities.search-results')
@stop @section('right') @include('books.parts.show-sidebar-section-details', ['book' => $book, 'watchOptions' => $watchOptions]) @include('books.parts.show-sidebar-section-actions', ['book' => $book, 'watchOptions' => $watchOptions]) @stop @section('left') @include('entities.search-form', ['label' => trans('entities.books_search_this')]) @include('books.parts.show-sidebar-section-tags', ['book' => $book]) @include('books.parts.show-sidebar-section-shelves', ['bookParentShelves' => $bookParentShelves]) @include('books.parts.show-sidebar-section-activity', ['activity' => $activity]) @stop