@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->cover) @endif @endpush @include('entities.body-tag-classes', ['entity' => $book]) @section('body')
@include('entities.breadcrumbs', ['crumbs' => [ $book, ]])

{{$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 @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
@endif
@include('entities.search-results')
@stop @section('right')
{{ trans('common.details') }}
{{ trans('common.actions') }}
@stop @section('left') @include('entities.search-form', ['label' => trans('entities.books_search_this')]) @if($book->tags->count() > 0)
@include('entities.tag-list', ['entity' => $book])
@endif @if(count($bookParentShelves) > 0)
{{ trans('entities.shelves') }}
@include('entities.list', ['entities' => $bookParentShelves, 'style' => 'compact'])
@endif @if(count($activity) > 0)
{{ trans('entities.recent_activity') }}
@include('common.activity-list', ['activity' => $activity])
@endif @stop