2018-10-21 21:05:11 +02:00
|
|
|
<div id="book-tree" class="card book-tree mb-m" v-pre>
|
2018-11-11 14:11:36 +01:00
|
|
|
@if (userCan('view', $book))
|
|
|
|
@include('partials.entity-list-item-basic', ['entity' => $book, 'classes' => ($current->matches($book)? 'selected' : '')])
|
|
|
|
@else
|
|
|
|
<h3>@icon('book') {{ trans('entities.books_navigation') }}</h3>
|
|
|
|
@endif
|
2017-08-26 16:41:33 +02:00
|
|
|
|
2018-11-11 14:11:36 +01:00
|
|
|
<ul class="sidebar-page-list menu">
|
2017-08-26 16:41:33 +02:00
|
|
|
|
2018-11-11 14:11:36 +01: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 16:41:33 +02:00
|
|
|
|
2018-11-11 14:11:36 +01:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
|
|
|
@include('chapters.child-menu', ['chapter' => $bookChild, 'current' => $current])
|
|
|
|
@endif
|
2017-08-26 16:41:33 +02:00
|
|
|
|
2018-11-11 14:11:36 +01:00
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
2017-08-26 16:41:33 +02:00
|
|
|
</div>
|