Sorting Pages & ChaptersFor {{ $book->name }}
-
@foreach($book->children() as $bookChild)
-
{{ $bookChild->name }}
@if($bookChild->isA('chapter'))
-
@foreach($bookChild->pages as $page)
- {{ $page->name }} @endforeach
@endforeach