2 <div class="book-tree" ng-non-bindable>
4 @if (isset($page) && $page->files->count() > 0)
5 <h6 class="text-muted">Attachments</h6>
6 @foreach($page->files as $file)
7 <div class="attachment">
8 <a href="{{ $file->getUrl() }}" @if($file->external) target="_blank" @endif><i class="zmdi zmdi-{{ $file->external ? 'open-in-new' : 'file' }}"></i> {{ $file->name }}</a>
13 @if (isset($pageNav) && $pageNav)
14 <h6 class="text-muted">Page Navigation</h6>
15 <div class="sidebar-page-nav menu">
16 @foreach($pageNav as $navItem)
17 <li class="page-nav-item {{ $navItem['nodeName'] }}">
18 <a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a>
24 <h6 class="text-muted">Book Navigation</h6>
25 <ul class="sidebar-page-list menu">
26 <li class="book-header"><a href="{{ $book->getUrl() }}" class="book {{ $current->matches($book)? 'selected' : '' }}"><i class="zmdi zmdi-book"></i>{{$book->name}}</a></li>
29 @foreach($sidebarTree as $bookChild)
30 <li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}">
31 <a href="{{ $bookChild->getUrl() }}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}">
32 @if($bookChild->isA('chapter'))<i class="zmdi zmdi-collection-bookmark"></i>@else <i class="zmdi zmdi-file-text"></i>@endif{{ $bookChild->name }}
35 @if($bookChild->isA('chapter') && count($bookChild->pages) > 0)
36 <p class="text-muted chapter-toggle @if($bookChild->matchesOrContains($current)) open @endif">
37 <i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ count($bookChild->pages) }} Pages</span>
39 <ul class="menu sub-menu inset-list @if($bookChild->matchesOrContains($current)) open @endif">
40 @foreach($bookChild->pages as $childPage)
41 <li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}">
42 <a href="{{ $childPage->getUrl() }}" class="page {{ $current->matches($childPage)? 'selected' : '' }}">
43 <i class="zmdi zmdi-file-text"></i> {{ $childPage->name }}