2015-07-24 04:55:46 +08:00
|
|
|
|
2015-08-31 18:43:28 +08:00
|
|
|
<div class="book-tree">
|
2015-09-01 00:59:45 +08:00
|
|
|
<h6 class="text-muted">Book Navigation</h6>
|
2015-08-31 18:43:28 +08: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-27 07:45:04 +08:00
|
|
|
@foreach($sidebarTree as $bookChild)
|
2015-08-31 18:43:28 +08:00
|
|
|
<li class="list-item-{{ $bookChild->getName() }}">
|
|
|
|
<a href="{{$bookChild->getUrl()}}" class="{{ $bookChild->getName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
|
2015-09-03 01:26:33 +08: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 18:43:28 +08:00
|
|
|
</a>
|
2015-07-31 05:27:35 +08:00
|
|
|
|
2015-08-31 18:43:28 +08:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
|
|
|
<ul class="menu">
|
|
|
|
@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
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
</div>
|