2016-06-12 19:14:14 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								<div class="chapter entity-list-item" data-entity-type="chapter" data-entity-id="{{$chapter->id}}">
							 | 
						
					
						
							
								
									
										
										
										
											2016-09-18 21:49:36 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    <h4>
							 | 
						
					
						
							
								
									
										
										
										
											2016-07-03 16:58:45 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        @if (isset($showPath) && $showPath)
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            <a href="{{ $chapter->book->getUrl() }}" class="text-book">
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-17 21:30:52 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								                @icon('book'){{ $chapter->book->getShortName() }}
							 | 
						
					
						
							
								
									
										
										
										
											2016-07-03 16:58:45 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            </a>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            <span class="text-muted">  »  </span>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        @endif
							 | 
						
					
						
							
								
									
										
										
										
											2016-09-02 03:36:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        <a href="{{ $chapter->getUrl() }}" class="text-chapter entity-list-item-link">
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-17 21:30:52 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @icon('chapter')<span class="entity-list-item-name break-text">{{ $chapter->name }}</span>
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-04 02:05:45 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </a>
							 | 
						
					
						
							
								
									
										
										
										
											2016-09-18 21:49:36 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    </h4>
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-07 04:08:03 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    <div class="entity-item-snippet">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        @if(isset($chapter->searchSnippet))
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-11 22:28:26 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								            <p class="text-muted break-text">{!! $chapter->searchSnippet !!}</p>
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-07 04:08:03 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        @else
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-11 22:28:26 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            <p class="text-muted break-text">{{ $chapter->getExcerpt() }}</p>
							 | 
						
					
						
							
								
									
										
										
										
											2017-08-07 04:08:03 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    </div>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-04 02:05:45 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							
								
									
										
										
										
											2016-02-21 20:53:58 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    @if(!isset($hidePages) && count($chapter->pages) > 0)
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-18 03:49:00 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								        <p chapter-toggle class="text-muted">@icon('caret-right') @icon('page') <span>{{ trans_choice('entities.x_pages', $chapter->pages->count()) }}</span></p>
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-04 02:05:45 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        <div class="inset-list">
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @foreach($chapter->pages as $page)
							 | 
						
					
						
							
								
									
										
										
										
											2018-02-17 21:30:52 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								                <h5 class="@if($page->draft) draft @endif"><a href="{{ $page->getUrl() }}" class="text-page @if($page->draft) draft @endif">@icon('page'){{$page->name}}</a></h5>
							 | 
						
					
						
							
								
									
										
										
										
											2015-09-04 02:05:45 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								            @endforeach
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								        </div>
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    @endif
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								</div>
							 |