@extends('base') @section('content')

{{$book->name}}

{{$book->description}}


@foreach($book->children() as $childElement)

@if(is_a($childElement, 'Oxbow\Chapter')) @else @endif {{ $childElement->name }}

{{$childElement->getExcerpt()}}

@if(is_a($childElement, 'Oxbow\Chapter') && count($childElement->pages) > 0)
@foreach($childElement->pages as $page)

{{$page->name}}

@endforeach
@endif

@endforeach

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

@stop