2018-12-09 11:51:31 -05:00
|
|
|
<div id="book-tree" class="book-tree mb-xl" v-pre>
|
|
|
|
<h5>{{ trans('entities.books_navigation') }}</h5>
|
2018-11-11 08:11:36 -05:00
|
|
|
@if (userCan('view', $book))
|
2018-12-09 11:51:31 -05:00
|
|
|
<div class="entity-list">
|
|
|
|
@include('partials.entity-list-item-basic', ['entity' => $book, 'classes' => ($current->matches($book)? 'selected' : '')])
|
|
|
|
</div>
|
2018-11-11 08:11:36 -05:00
|
|
|
@endif
|
2017-08-26 10:41:33 -04:00
|
|
|
|
2018-12-09 11:51:31 -05:00
|
|
|
<ul class="sidebar-page-list menu entity-list">
|
2017-08-26 10:41:33 -04:00
|
|
|
|
2018-11-11 08:11:36 -05:00
|
|
|
@foreach($sidebarTree as $bookChild)
|
|
|
|
<li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
|
|
|
|
@include('partials.entity-list-item-basic', ['entity' => $bookChild, 'classes' => $current->matches($bookChild)? 'selected' : ''])
|
2017-08-26 10:41:33 -04:00
|
|
|
|
2018-11-11 08:11:36 -05:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
|
|
|
@include('chapters.child-menu', ['chapter' => $bookChild, 'current' => $current])
|
|
|
|
@endif
|
2017-08-26 10:41:33 -04:00
|
|
|
|
2018-11-11 08:11:36 -05:00
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2017-08-26 10:41:33 -04:00
|
|
|
</div>
|