@extends('sidebar-layout') @section('toolbar')
@include('books._breadcrumbs', ['book' => $book])
{{ trans('entities.export') }}
@if(userCan('page-create', $book)) {{ trans('entities.pages_new') }} @endif @if(userCan('chapter-create', $book)) {{ trans('entities.chapters_new') }} @endif @if(userCan('book-update', $book) || userCan('restrictions-manage', $book) || userCan('book-delete', $book)) @endif
@stop @section('sidebar')
@if($book->restricted)

{{ trans('entities.permissions') }}

@if(userCan('restrictions-manage', $book)) {{ trans('entities.books_permissions_active') }} @else {{ trans('entities.books_permissions_active') }} @endif

@endif @if(count($activity) > 0)

{{ trans('entities.recent_activity') }}

@include('partials/activity-list', ['activity' => $activity])
@endif

{{ trans('common.details') }}

@include('partials.entity-meta', ['entity' => $book])
@stop @section('container-attrs') id="entity-dashboard" entity-id="{{ $book->id }}" entity-type="book" @stop @section('body')

{{$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)) {{ trans('entities.books_empty_create_page') }} @endif @if(userCan('page-create', $book) && userCan('chapter-create', $book))   -{{ trans('entities.books_empty_or') }}-    @endif @if(userCan('chapter-create', $book)) {{ trans('entities.books_empty_add_chapter') }} @endif
@endif

{{ trans('entities.search_results') }} {{ trans('entities.search_clear') }}

@include('partials/loading-icon')
@stop