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