2018-11-11 08:11:36 -05:00
|
|
|
<div class="chapter-child-menu">
|
2019-08-25 12:21:25 -04:00
|
|
|
<button chapter-toggle type="button" aria-expanded="{{ $isOpen ? 'true' : 'false' }}"
|
2019-08-24 13:26:28 -04:00
|
|
|
class="text-muted @if($isOpen) open @endif">
|
2020-12-17 12:31:18 -05:00
|
|
|
@icon('caret-right') @icon('page') <span>{{ trans_choice('entities.x_pages', $bookChild->visible_pages->count()) }}</span>
|
2019-08-24 13:26:28 -04:00
|
|
|
</button>
|
|
|
|
<ul class="sub-menu inset-list @if($isOpen) open @endif" @if($isOpen) style="display: block;" @endif role="menu">
|
2020-12-17 12:31:18 -05:00
|
|
|
@foreach($bookChild->visible_pages as $childPage)
|
2019-08-24 13:26:28 -04:00
|
|
|
<li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}" role="presentation">
|
2018-11-11 08:11:36 -05:00
|
|
|
@include('partials.entity-list-item-basic', ['entity' => $childPage, 'classes' => $current->matches($childPage)? 'selected' : '' ])
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|