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