2015-07-23 16:55:46 -04:00
|
|
|
|
2015-12-30 16:38:20 -05:00
|
|
|
<div class="book-tree" ng-non-bindable>
|
2016-09-18 09:49:36 -04:00
|
|
|
|
2016-10-23 10:25:04 -04:00
|
|
|
@if (isset($page) && $page->files->count() > 0)
|
2016-10-10 15:30:27 -04:00
|
|
|
<h6 class="text-muted">Attachments</h6>
|
|
|
|
@foreach($page->files as $file)
|
|
|
|
<div class="attachment">
|
2016-10-23 12:55:48 -04:00
|
|
|
<a href="{{ $file->getUrl() }}" @if($file->external) target="_blank" @endif><i class="zmdi zmdi-{{ $file->external ? 'open-in-new' : 'file' }}"></i> {{ $file->name }}</a>
|
2016-10-10 15:30:27 -04:00
|
|
|
</div>
|
|
|
|
@endforeach
|
|
|
|
@endif
|
|
|
|
|
2016-09-18 09:49:36 -04:00
|
|
|
@if (isset($pageNav) && $pageNav)
|
|
|
|
<h6 class="text-muted">Page Navigation</h6>
|
|
|
|
<div class="sidebar-page-nav menu">
|
|
|
|
@foreach($pageNav as $navItem)
|
|
|
|
<li class="page-nav-item {{ $navItem['nodeName'] }}">
|
|
|
|
<a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2015-08-31 12:59:45 -04:00
|
|
|
<h6 class="text-muted">Book Navigation</h6>
|
2015-08-31 06:43:28 -04:00
|
|
|
<ul class="sidebar-page-list menu">
|
2016-08-14 07:29:35 -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-11-29 13:06:55 -05:00
|
|
|
|
|
|
|
|
2015-11-26 18:45:04 -05:00
|
|
|
@foreach($sidebarTree as $bookChild)
|
2016-03-13 08:04:08 -04:00
|
|
|
<li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
|
2016-08-14 07:29:35 -04:00
|
|
|
<a href="{{ $bookChild->getUrl() }}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
|
2015-09-02 13:26:33 -04: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 06:43:28 -04:00
|
|
|
</a>
|
2015-07-30 17:27:35 -04:00
|
|
|
|
2015-08-31 06:43:28 -04:00
|
|
|
@if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
|
2015-11-29 13:06:55 -05: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 06:43:28 -04:00
|
|
|
@foreach($bookChild->pages as $childPage)
|
2016-03-13 08:04:08 -04:00
|
|
|
<li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}">
|
2016-08-14 07:29:35 -04:00
|
|
|
<a href="{{ $childPage->getUrl() }}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
|
2015-08-31 06:43:28 -04:00
|
|
|
<i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
@endforeach
|
|
|
|
</ul>
|
|
|
|
@endif
|
2015-11-29 13:06:55 -05:00
|
|
|
|
|
|
|
|
2015-08-31 06:43:28 -04:00
|
|
|
</li>
|
|
|
|
@endforeach
|
2015-11-29 13:06:55 -05:00
|
|
|
|
|
|
|
|
2015-08-31 06:43:28 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|