| 
									
										
										
										
											2015-07-24 04:55:46 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-12-31 05:38:20 +08:00
										 |  |  | <div class="book-tree" ng-non-bindable> | 
					
						
							| 
									
										
										
										
											2016-09-18 21:49:36 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-28 03:37:57 +08:00
										 |  |  |     @if(isset($page) && $page->tags->count() > 0) | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |         <div class="card tag-display"> | 
					
						
							|  |  |  |             <h3><i class="zmdi zmdi-tag"></i> {{ trans('entities.page_tags') }}</h3> | 
					
						
							|  |  |  |             <div class="body"> | 
					
						
							|  |  |  |                 <table> | 
					
						
							|  |  |  |                     <tbody> | 
					
						
							|  |  |  |                     @foreach($page->tags as $tag) | 
					
						
							|  |  |  |                         <tr class="tag"> | 
					
						
							|  |  |  |                             <td @if(!$tag->value) colspan="2" @endif><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%5D') }}">{{ $tag->name }}</a></td> | 
					
						
							|  |  |  |                             @if($tag->value) <td class="tag-value"><a href="{{ baseUrl('/search?term=%5B' . urlencode($tag->name) .'%3D' . urlencode($tag->value) . '%5D') }}">{{$tag->value}}</a></td> @endif | 
					
						
							|  |  |  |                         </tr> | 
					
						
							|  |  |  |                     @endforeach | 
					
						
							|  |  |  |                     </tbody> | 
					
						
							|  |  |  |                 </table> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2016-11-28 03:37:57 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-11-12 22:12:26 +08:00
										 |  |  |     @if (isset($page) && $page->attachments->count() > 0) | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |         <div class="card"> | 
					
						
							|  |  |  |             <h3><i class="zmdi zmdi-attachment-alt"></i> {{ trans('entities.pages_attachments') }}</h3> | 
					
						
							|  |  |  |             <div class="body"> | 
					
						
							|  |  |  |                 @foreach($page->attachments as $attachment) | 
					
						
							|  |  |  |                     <div class="attachment"> | 
					
						
							|  |  |  |                         <a href="{{ $attachment->getUrl() }}" @if($attachment->external) target="_blank" @endif><i class="zmdi zmdi-{{ $attachment->external ? 'open-in-new' : 'file' }}"></i>{{ $attachment->name }}</a> | 
					
						
							|  |  |  |                     </div> | 
					
						
							|  |  |  |                 @endforeach | 
					
						
							| 
									
										
										
										
											2016-10-11 03:30:27 +08:00
										 |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |         </div> | 
					
						
							| 
									
										
										
										
											2016-10-11 03:30:27 +08:00
										 |  |  |     @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-14 23:34:52 +08:00
										 |  |  |     @if (isset($pageNav) && count($pageNav)) | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |         <div class="card"> | 
					
						
							|  |  |  |             <h3><i class="zmdi zmdi-compass"></i> {{ trans('entities.pages_navigation') }}</h3> | 
					
						
							|  |  |  |             <div class="body"> | 
					
						
							|  |  |  |                 <div class="sidebar-page-nav menu"> | 
					
						
							|  |  |  |                     @foreach($pageNav as $navItem) | 
					
						
							|  |  |  |                         <li class="page-nav-item h{{ $navItem['level'] }}"> | 
					
						
							|  |  |  |                             <a href="{{ $navItem['link'] }}">{{ $navItem['text'] }}</a> | 
					
						
							|  |  |  |                         </li> | 
					
						
							|  |  |  |                     @endforeach | 
					
						
							|  |  |  |                 </div> | 
					
						
							|  |  |  |             </div> | 
					
						
							| 
									
										
										
										
											2016-09-18 21:49:36 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |     <div class="card"> | 
					
						
							|  |  |  |         <h3><i class="zmdi zmdi-book"></i> {{ trans('entities.books_navigation') }}</h3> | 
					
						
							|  |  |  |         <div class="body"> | 
					
						
							|  |  |  |             <ul class="sidebar-page-list menu"> | 
					
						
							| 
									
										
										
										
											2015-11-30 02:06:55 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |                 @if (userCan('view', $book)) | 
					
						
							|  |  |  |                     <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-08-31 18:43:28 +08:00
										 |  |  |                 @endif | 
					
						
							| 
									
										
										
										
											2015-11-30 02:06:55 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |                 @foreach($sidebarTree as $bookChild) | 
					
						
							|  |  |  |                     <li class="list-item-{{ $bookChild->getClassName() }} {{ $bookChild->getClassName() }} {{ $bookChild->isA('page') && $bookChild->draft ? 'draft' : '' }}"> | 
					
						
							|  |  |  |                         <a href="{{ $bookChild->getUrl() }}" class="{{ $bookChild->getClassName() }} {{ $current->matches($bookChild)? 'selected' : '' }}"> | 
					
						
							|  |  |  |                             @if($bookChild->isA('chapter'))<i class="zmdi zmdi-collection-bookmark"></i>@else <i class="zmdi zmdi-file-text"></i>@endif{{ $bookChild->name }} | 
					
						
							|  |  |  |                         </a> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         @if($bookChild->isA('chapter') && count($bookChild->pages) > 0) | 
					
						
							|  |  |  |                             <p chapter-toggle class="text-muted @if($bookChild->matchesOrContains($current)) open @endif"> | 
					
						
							|  |  |  |                                 <i class="zmdi zmdi-caret-right"></i> <i class="zmdi zmdi-file-text"></i> <span>{{ trans('entities.x_pages', ['count' => $bookChild->pages->count()]) }}</span> | 
					
						
							|  |  |  |                             </p> | 
					
						
							|  |  |  |                             <ul class="menu sub-menu inset-list @if($bookChild->matchesOrContains($current)) open @endif"> | 
					
						
							|  |  |  |                                 @foreach($bookChild->pages as $childPage) | 
					
						
							|  |  |  |                                     <li class="list-item-page {{ $childPage->isA('page') && $childPage->draft ? 'draft' : '' }}"> | 
					
						
							|  |  |  |                                         <a href="{{ $childPage->getUrl() }}" class="page {{ $current->matches($childPage)? 'selected' : '' }}"> | 
					
						
							|  |  |  |                                             <i class="zmdi zmdi-file-text"></i> {{ $childPage->name }} | 
					
						
							|  |  |  |                                         </a> | 
					
						
							|  |  |  |                                     </li> | 
					
						
							|  |  |  |                                 @endforeach | 
					
						
							|  |  |  |                             </ul> | 
					
						
							|  |  |  |                         @endif | 
					
						
							| 
									
										
										
										
											2015-11-30 02:06:55 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-08-20 01:32:24 +08:00
										 |  |  |                     </li> | 
					
						
							|  |  |  |                 @endforeach | 
					
						
							|  |  |  |             </ul> | 
					
						
							|  |  |  |         </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							| 
									
										
										
										
											2015-11-30 02:06:55 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2015-08-31 18:43:28 +08:00
										 |  |  | </div> |