2021-08-22 14:15:58 +02:00
|
|
|
@extends('layouts.export')
|
2017-02-26 14:26:51 +01:00
|
|
|
|
2021-05-05 00:15:05 +02:00
|
|
|
@section('title', $book->name)
|
2017-02-26 14:26:51 +01:00
|
|
|
|
2021-05-05 00:15:05 +02:00
|
|
|
@section('content')
|
2019-04-07 10:57:48 +02:00
|
|
|
<h1 style="font-size: 4.8em">{{$book->name}}</h1>
|
2017-02-26 14:26:51 +01:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
<p>{{ $book->description }}</p>
|
|
|
|
|
|
|
|
@if(count($bookChildren) > 0)
|
|
|
|
<ul class="contents">
|
|
|
|
@foreach($bookChildren as $bookChild)
|
|
|
|
<li><a href="#{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</a></li>
|
2020-12-17 18:31:18 +01:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->visible_pages) > 0)
|
2019-04-07 10:57:48 +02:00
|
|
|
<ul>
|
2020-12-17 18:31:18 +01:00
|
|
|
@foreach($bookChild->visible_pages as $page)
|
2019-04-07 10:57:48 +02:00
|
|
|
<li><a href="#page-{{$page->id}}">{{ $page->name }}</a></li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2017-02-26 14:26:51 +01:00
|
|
|
@endif
|
2019-04-07 10:57:48 +02:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@foreach($bookChildren as $bookChild)
|
|
|
|
<div class="page-break"></div>
|
|
|
|
<h1 id="{{$bookChild->getType()}}-{{$bookChild->id}}">{{ $bookChild->name }}</h1>
|
2017-02-26 14:26:51 +01:00
|
|
|
|
2019-04-07 10:57:48 +02:00
|
|
|
@if($bookChild->isA('chapter'))
|
2019-10-05 13:55:01 +02:00
|
|
|
<p>{{ $bookChild->description }}</p>
|
2019-04-07 10:57:48 +02:00
|
|
|
|
2020-12-17 18:31:18 +01:00
|
|
|
@if(count($bookChild->visible_pages) > 0)
|
|
|
|
@foreach($bookChild->visible_pages as $page)
|
2017-02-26 14:26:51 +01:00
|
|
|
<div class="page-break"></div>
|
2019-04-07 10:57:48 +02:00
|
|
|
<div class="chapter-hint">{{$bookChild->name}}</div>
|
|
|
|
<h1 id="page-{{$page->id}}">{{ $page->name }}</h1>
|
|
|
|
{!! $page->html !!}
|
2017-02-26 14:26:51 +01:00
|
|
|
@endforeach
|
2019-04-07 10:57:48 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
@else
|
|
|
|
{!! $bookChild->html !!}
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@endforeach
|
2021-05-05 00:15:05 +02:00
|
|
|
@endsection
|