88012449f3
Moved export templates elements into their own folder for better grouping of logical usage. Within the base export template, added some body classes to allow easier targeted customisation via custom head css. Split content of export templates into smaller partials for easier future customization. Closes #3443
20 lines
No EOL
561 B
PHP
20 lines
No EOL
561 B
PHP
@extends('layouts.export')
|
|
|
|
@section('title', $book->name)
|
|
|
|
@section('content')
|
|
|
|
<h1 style="font-size: 4.8em">{{$book->name}}</h1>
|
|
<p>{{ $book->description }}</p>
|
|
|
|
@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 |