@icon('book'){{ $book->name }}
@foreach($bookChildren as $bookChild)
-
@icon($bookChild->isA('chapter') ? 'chapter' : 'page'){{ $bookChild->name }}
@if($bookChild->isA('chapter'))
@foreach($bookChild->pages as $page)
-
@icon('page')
{{ $page->name }}
@endforeach
@endif
@endforeach