@include('partials.export-styles', ['format' => $format]) @yield('head') @include('partials.custom-head')

{{$book->name}}

{{ $book->description }}

@if(count($bookChildren) > 0) @endif @foreach($bookChildren as $bookChild)

{{ $bookChild->name }}

@if($bookChild->isA('chapter'))

{{ $bookChild->description }}

@if(count($bookChild->visible_pages) > 0) @foreach($bookChild->visible_pages as $page)
{{$bookChild->name}}

{{ $page->name }}

{!! $page->html !!} @endforeach @endif @else {!! $bookChild->html !!} @endif @endforeach