@extends('base') @section('content')
@if(userCan('page-create', $book)) New Page @endif @if(userCan('chapter-create', $book)) New Chapter @endif @if(userCan('book-update', $book)) Edit Sort @endif @if(userCan('restrictions-manage', $book)) Restrict @endif @if(userCan('book-delete', $book)) Delete @endif

{{$book->name}}

{{$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

No pages or chapters have been created for this book.

Create a new page   -or-    Add a chapter


@endif

Created {{$book->created_at->diffForHumans()}} @if($book->createdBy) by {{$book->createdBy->name}} @endif
Last Updated {{$book->updated_at->diffForHumans()}} @if($book->updatedBy) by {{$book->updatedBy->name}} @endif

Search Results Clear Search

@include('partials/loading-icon')

Recent Activity

@include('partials/activity-list', ['activity' => Activity::entityActivity($book, 20, 0)])
@stop