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

{{ $chapter->name }}

{{ $chapter->description }}

@if(count($chapter->pages) > 0)

@foreach($chapter->pages as $page)

{{ $page->name }}

{{$page->getExcerpt()}}


@endforeach
@else

No pages are in this chapter

@endif

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

@stop