@extends('layouts.export') @section('title', $book->name) @section('content')

{{$book->name}}

{!! $book->descriptionHtml() !!}
@include('exports.parts.book-contents-menu', ['children' => $bookChildren]) @foreach($bookChildren as $bookChild) @if($bookChild->isA('chapter')) @include('exports.parts.chapter-item', ['chapter' => $bookChild]) @else @include('exports.parts.page-item', ['page' => $bookChild, 'chapter' => null]) @endif @endforeach @endsection