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