@extends('tri-layout') @section('container-attrs') component="entity-search" option:entity-search:entity-id="{{ $book->id }}" option:entity-search:entity-type="book" @stop @section('body')
@include('partials.breadcrumbs', ['crumbs' => [ $book, ]])

{{$book->name}}

{!! nl2br(e($book->description)) !!}

@if(count($bookChildren) > 0)
@foreach($bookChildren as $childElement) @if($childElement->isA('chapter')) @include('chapters.list-item', ['chapter' => $childElement]) @else @include('pages.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('partials.entity-search-results')
@stop @section('right')
{{ trans('common.details') }}
{{ trans('common.actions') }}
@if(userCan('page-create', $book)) @icon('add') {{ trans('entities.pages_new') }} @endif @if(userCan('chapter-create', $book)) @icon('add') {{ trans('entities.chapters_new') }} @endif
@if(userCan('book-update', $book)) @icon('edit') {{ trans('common.edit') }} @icon('sort') {{ trans('common.sort') }} @endif @if(userCan('restrictions-manage', $book)) @icon('lock') {{ trans('entities.permissions') }} @endif @if(userCan('book-delete', $book)) @icon('delete') {{ trans('common.delete') }} @endif
@include('partials.entity-export-menu', ['entity' => $book])
@stop @section('left') @include('partials.entity-search-form', ['label' => trans('entities.books_search_this')]) @if($book->tags->count() > 0)
@include('components.tag-list', ['entity' => $book])
@endif @if(count($bookParentShelves) > 0)
{{ trans('entities.shelves_long') }}
@include('partials.entity-list', ['entities' => $bookParentShelves, 'style' => 'compact'])
@endif @if(count($activity) > 0)
{{ trans('entities.recent_activity') }}
@include('partials.activity-list', ['activity' => $activity])
@endif @stop