| 
									
										
										
										
											2022-07-13 22:23:03 +08:00
										 |  |  | @component('entities.list-item-basic', ['entity' => $entity, 'classes' => (($locked ?? false) ? 'disabled ' : '') . ($classes ?? '') ]) | 
					
						
							| 
									
										
										
										
											2021-05-24 23:12:09 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-11 21:11:36 +08:00
										 |  |  | <div class="entity-item-snippet"> | 
					
						
							| 
									
										
										
										
											2019-03-31 00:54:15 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-07-13 22:23:03 +08:00
										 |  |  |     @if($locked ?? false) | 
					
						
							|  |  |  |         <div class="text-warn my-xxs bold"> | 
					
						
							| 
									
										
										
										
											2022-07-17 17:18:24 +08:00
										 |  |  |             @icon('lock'){{ trans('entities.entity_select_lack_permission') }} | 
					
						
							| 
									
										
										
										
											2022-07-13 22:23:03 +08:00
										 |  |  |         </div> | 
					
						
							|  |  |  |     @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-31 00:54:15 +08:00
										 |  |  |     @if($showPath ?? false) | 
					
						
							| 
									
										
										
										
											2021-11-08 23:24:49 +08:00
										 |  |  |         @if($entity->relationLoaded('book') && $entity->book) | 
					
						
							| 
									
										
										
										
											2019-03-31 00:54:15 +08:00
										 |  |  |             <span class="text-book">{{ $entity->book->getShortName(42) }}</span> | 
					
						
							| 
									
										
										
										
											2021-11-08 23:24:49 +08:00
										 |  |  |             @if($entity->relationLoaded('chapter') && $entity->chapter) | 
					
						
							| 
									
										
										
										
											2019-03-31 00:54:15 +08:00
										 |  |  |                 <span class="text-muted entity-list-item-path-sep">@icon('chevron-right')</span> <span class="text-chapter">{{ $entity->chapter->getShortName(42) }}</span> | 
					
						
							|  |  |  |             @endif | 
					
						
							|  |  |  |         @endif | 
					
						
							|  |  |  |     @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-11-13 06:57:50 +08:00
										 |  |  |     <p class="text-muted break-text">{{ $entity->preview_content ?? $entity->getExcerpt() }}</p> | 
					
						
							| 
									
										
										
										
											2018-11-11 21:11:36 +08:00
										 |  |  | </div> | 
					
						
							| 
									
										
										
										
											2021-05-24 23:12:09 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | @if(($showTags ?? false) && $entity->tags->count() > 0) | 
					
						
							|  |  |  |     <div class="entity-item-tags mt-xs"> | 
					
						
							| 
									
										
										
										
											2021-08-22 20:15:58 +08:00
										 |  |  |         @include('entities.tag-list', ['entity' => $entity, 'linked' => false ]) | 
					
						
							| 
									
										
										
										
											2021-05-24 23:12:09 +08:00
										 |  |  |     </div> | 
					
						
							|  |  |  | @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-01-19 05:08:01 +08:00
										 |  |  | @if(($showUpdatedBy ?? false) && $entity->relationLoaded('updatedBy') && $entity->updatedBy) | 
					
						
							|  |  |  |     <small title="{{ $entity->updated_at->toDayDateTimeString() }}"> | 
					
						
							|  |  |  |         {!! trans('entities.meta_updated_name', [ | 
					
						
							|  |  |  |             'timeLength' => $entity->updated_at->diffForHumans(), | 
					
						
							|  |  |  |             'user' => e($entity->updatedBy->name) | 
					
						
							|  |  |  |         ]) !!} | 
					
						
							|  |  |  |     </small> | 
					
						
							|  |  |  | @endif | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-11-11 21:11:36 +08:00
										 |  |  | @endcomponent |