@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 @endif @if(userCan('book-update', $book) || userCan('restrictions-manage', $book) || userCan('book-delete', $book)) @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')
@if($book->restricted)

@if(userCan('restrictions-manage', $book)) Book Permissions Active @else Book Permissions Active @endif

@endif

Recent Activity

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