{{$book->name}}
{{ $book->description }}
@if(count($bookChildren) > 0)-
@foreach($bookChildren as $bookChild)
- {{ $bookChild->name }} @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
- {{ $page->name }} @endforeach
-
@foreach($bookChild->pages as $page)
{{ $bookChild->name }}
@if($bookChild->isA('chapter')){{ $bookChild->text }}
@if(count($bookChild->pages) > 0) @foreach($bookChild->pages as $page){{$bookChild->name}}