2015-07-23 22:55:46 +02:00
|
|
|
|
2015-12-30 22:38:20 +01:00
|
|
|
<div class="book-tree" ng-non-bindable>
|
2015-08-31 18:59:45 +02:00
|
|
|
<h6 class="text-muted">Book Navigation</h6>
|
2015-08-31 12:43:28 +02:00
|
|
|
<ul class="sidebar-page-list menu">
|
|
|
|
<li class="book-header"><a href="{{$book->getUrl()}}" class="book {{ $current->matches($book)? 'selected' : '' }}"><i class="zmdi zmdi-book"></i>{{$book->name}}</a></li>
|
2015-11-29 19:06:55 +01:00
|
|
|
|
|
|
|
|
2015-11-27 00:45:04 +01:00
|
|
|
@foreach($sidebarTree as $bookChild)
|
2015-12-05 15:41:51 +01:00
|
|
|
<li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }}">
|
|
|
|
<a href="{{$bookChild->getUrl()}}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
|
2015-09-02 19:26:33 +02:00
|
|
|
@if($bookChild->isA('chapter'))<i class="zmdi zmdi-collection-bookmark"></i>@else <i class="zmdi zmdi-file-text"></i>@endif{{ $bookChild->name }}
|
2015-08-31 12:43:28 +02:00
|
|
|
</a>
|
2015-07-30 23:27:35 +02:00
|
|
|
|
2015-08-31 12:43:28 +02:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
2015-11-29 19:06:55 +01:00
|
|
|
<p class="text-muted chapter-toggle @if($bookChild->matchesOrContains($current)) open @endif">
|
|
|
|
<i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ count($bookChild->pages) }} Pages</span>
|
|
|
|
</p>
|
|
|
|
<ul class="menu sub-menu inset-list @if($bookChild->matchesOrContains($current)) open @endif">
|
2015-08-31 12:43:28 +02:00
|
|
|
@foreach($bookChild->pages as $childPage)
|
|
|
|
<li class="list-item-page">
|
|
|
|
<a href="{{$childPage->getUrl()}}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
|
|
|
|
<i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
2015-11-29 19:06:55 +01:00
|
|
|
|
|
|
|
|
2015-08-31 12:43:28 +02:00
|
|
|
</li>
|
|
|
|
@endforeach
|
2015-11-29 19:06:55 +01:00
|
|
|
|
|
|
|
|
2015-08-31 12:43:28 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|