2015-07-24 04:55:46 +08:00
|
|
|
|
2015-07-31 05:27:35 +08:00
|
|
|
<ul class="sidebar-page-list menu">
|
2015-08-16 21:51:45 +08:00
|
|
|
<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-07-29 03:57:13 +08:00
|
|
|
@foreach($book->children() as $bookChild)
|
2015-08-16 07:50:27 +08:00
|
|
|
<li class="list-item-{{is_a($bookChild, 'Oxbow\Chapter') ? 'chapter' : 'page' }}">
|
2015-08-16 21:51:45 +08:00
|
|
|
<a href="{{$bookChild->getUrl()}}" class="{{is_a($bookChild, 'Oxbow\Chapter') ? 'chapter' : 'page' }} {{ $current->matches($bookChild)? 'selected' : '' }}">
|
2015-07-31 05:27:35 +08:00
|
|
|
@if(is_a($bookChild, 'Oxbow\Chapter'))
|
|
|
|
<i class="zmdi zmdi-collection-bookmark chapter-toggle"></i>
|
|
|
|
@else
|
|
|
|
<i class="zmdi zmdi-file-text"></i>
|
|
|
|
@endif
|
|
|
|
{{ $bookChild->name }}
|
|
|
|
</a>
|
|
|
|
|
2015-07-29 03:57:13 +08:00
|
|
|
@if(is_a($bookChild, 'Oxbow\Chapter') && count($bookChild->pages) > 0)
|
2015-07-31 05:27:35 +08:00
|
|
|
<ul class="menu">
|
2015-08-16 21:51:45 +08:00
|
|
|
@foreach($bookChild->pages as $childPage)
|
2015-08-16 07:50:27 +08:00
|
|
|
<li class="list-item-page">
|
2015-08-16 21:51:45 +08:00
|
|
|
<a href="{{$childPage->getUrl()}}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
|
|
|
|
<i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}
|
2015-07-31 05:27:35 +08:00
|
|
|
</a>
|
|
|
|
</li>
|
2015-07-29 03:57:13 +08:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
2015-07-24 04:55:46 +08:00
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|