2015-09-04 02:05:45 +08:00
|
|
|
<div class="chapter">
|
|
|
|
<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 20:53:58 +08:00
|
|
|
@if(!isset($hidePages) && count($chapter->pages) > 0)
|
2015-11-30 02:06:55 +08: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-04 02:05:45 +08:00
|
|
|
<div class="inset-list">
|
|
|
|
@foreach($chapter->pages as $page)
|
|
|
|
<h4><a href="{{$page->getUrl()}}"><i class="zmdi zmdi-file-text"></i>{{$page->name}}</a></h4>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|