2019-03-17 11:07:03 -04:00
|
|
|
<a href="{{ $chapter->getUrl() }}" class="chapter entity-list-item @if($chapter->hasChildren()) has-children @endif" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
|
|
|
|
<span class="icon text-chapter">@icon('chapter')</span>
|
2019-01-13 10:54:55 -05:00
|
|
|
<div class="content">
|
2019-03-17 11:07:03 -04:00
|
|
|
<h4 class="entity-list-item-name break-text">{{ $chapter->name }}</h4>
|
|
|
|
<div class="entity-item-snippet">
|
|
|
|
<p class="text-muted break-text mb-s">{{ $chapter->getExcerpt() }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
@if ($chapter->hasChildren())
|
|
|
|
<div class="chapter chapter-expansion">
|
|
|
|
<span class="icon text-chapter">@icon('page')</span>
|
|
|
|
<div class="content">
|
|
|
|
<div chapter-toggle class="text-muted chapter-expansion-toggle">@icon('caret-right') <span>{{ trans_choice('entities.x_pages', $chapter->pages->count()) }}</span></div>
|
|
|
|
<div class="inset-list">
|
|
|
|
<div class="entity-list-item-children">
|
2019-03-30 11:49:14 -04:00
|
|
|
@include('partials.entity-list', ['entities' => $chapter->pages])
|
2019-01-13 10:54:55 -05:00
|
|
|
</div>
|
2019-03-17 11:07:03 -04:00
|
|
|
</div>
|
2015-09-03 14:05:45 -04:00
|
|
|
</div>
|
2019-01-13 10:54:55 -05:00
|
|
|
</div>
|
2019-03-17 11:07:03 -04:00
|
|
|
@endif
|