2016-06-11 22:04:18 +02:00
|
|
|
<div class="chapter" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
|
2015-09-03 20:05:45 +02:00
|
|
|
<h3>
|
|
|
|
<a href="{{ $chapter->getUrl() }}" class="text-chapter">
|
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i>{{ $chapter->name }}
|
|
|
|
</a>
|
|
|
|
</h3>
|
|
|
|
@if(isset($chapter->searchSnippet))
|
|
|
|
<p class="text-muted">{!! $chapter->searchSnippet !!}</p>
|
|
|
|
@else
|
|
|
|
<p class="text-muted">{{ $chapter->getExcerpt() }}</p>
|
|
|
|
@endif
|
|
|
|
|
2016-02-21 13:53:58 +01:00
|
|
|
@if(!isset($hidePages) && count($chapter->pages) > 0)
|
2015-11-29 19:06:55 +01:00
|
|
|
<p class="text-muted chapter-toggle"><i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ count($chapter->pages) }} Pages</span></p>
|
2015-09-03 20:05:45 +02:00
|
|
|
<div class="inset-list">
|
|
|
|
@foreach($chapter->pages as $page)
|
2016-03-13 13:43:42 +01:00
|
|
|
<h4 class="@if($page->draft) draft @endif"><a href="{{$page->getUrl()}}" class="text-page @if($page->draft) draft @endif"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h4>
|
2015-09-03 20:05:45 +02:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|