2016-06-12 13:14:14 +02:00
|
|
|
<div class="chapter entity-list-item" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
|
2016-09-18 15:49:36 +02:00
|
|
|
<h4>
|
2016-07-03 10:58:45 +02:00
|
|
|
@if (isset($showPath) && $showPath)
|
|
|
|
<a href="{{ $chapter->book->getUrl() }}" class="text-book">
|
|
|
|
<i class="zmdi zmdi-book"></i>{{ $chapter->book->name }}
|
|
|
|
</a>
|
|
|
|
<span class="text-muted"> » </span>
|
|
|
|
@endif
|
2016-09-01 21:36:22 +02:00
|
|
|
<a href="{{ $chapter->getUrl() }}" class="text-chapter entity-list-item-link">
|
|
|
|
<i class="zmdi zmdi-collection-bookmark"></i><span class="entity-list-item-name">{{ $chapter->name }}</span>
|
2015-09-03 20:05:45 +02:00
|
|
|
</a>
|
2016-09-18 15:49:36 +02:00
|
|
|
</h4>
|
2015-09-03 20:05:45 +02:00
|
|
|
@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)
|
2016-11-17 14:33:07 +01:00
|
|
|
<p class="text-muted chapter-toggle"><i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ trans('entities.x_pages', ['count' => $chapter->pages->count()]) }}</span></p>
|
2015-09-03 20:05:45 +02:00
|
|
|
<div class="inset-list">
|
|
|
|
@foreach($chapter->pages as $page)
|
2016-09-18 15:49:36 +02:00
|
|
|
<h5 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></h5>
|
2015-09-03 20:05:45 +02:00
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
</div>
|