2015-07-23 22:55:46 +02:00
|
|
|
|
2015-07-30 23:27:35 +02:00
|
|
|
<ul class="sidebar-page-list menu">
|
|
|
|
<li class="book-header"><a href="{{$book->getUrl()}}" class="book"><i class="zmdi zmdi-book"></i>{{$book->name}}</a></li>
|
2015-07-28 21:57:13 +02:00
|
|
|
@foreach($book->children() as $bookChild)
|
|
|
|
<li>
|
2015-07-30 23:27:35 +02:00
|
|
|
<a href="{{$bookChild->getUrl()}}" class="@if(is_a($bookChild, 'Oxbow\Chapter')) chapter @else page @endif">
|
|
|
|
@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 21:57:13 +02:00
|
|
|
@if(is_a($bookChild, 'Oxbow\Chapter') && count($bookChild->pages) > 0)
|
2015-07-30 23:27:35 +02:00
|
|
|
<ul class="menu">
|
|
|
|
@foreach($bookChild->pages as $page)
|
|
|
|
<li>
|
|
|
|
<a href="{{$page->getUrl()}}" class="@if(is_a($page, 'Oxbow\Chapter')) chapter @else page @endif">
|
|
|
|
@if(is_a($page, 'Oxbow\Chapter'))
|
|
|
|
<i class="zmdi zmdi-collection-bookmark chapter-toggle"></i>
|
|
|
|
@else
|
|
|
|
<i class="zmdi zmdi-file-text"></i>
|
|
|
|
@endif
|
|
|
|
{{ $page->name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
2015-07-28 21:57:13 +02:00
|
|
|
@endforeach
|
|
|
|
</ul>
|
2015-07-23 22:55:46 +02:00
|
|
|
@endif
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|