2021-08-22 14:15:58 +02:00
|
|
|
@component('entities.list-item-basic', ['entity' => $entity])
|
2021-05-24 17:12:09 +02:00
|
|
|
|
2018-11-11 14:11:36 +01:00
|
|
|
<div class="entity-item-snippet">
|
2019-03-30 17:54:15 +01:00
|
|
|
|
|
|
|
@if($showPath ?? false)
|
2021-11-08 16:24:49 +01:00
|
|
|
@if($entity->relationLoaded('book') && $entity->book)
|
2019-03-30 17:54:15 +01:00
|
|
|
<span class="text-book">{{ $entity->book->getShortName(42) }}</span>
|
2021-11-08 16:24:49 +01:00
|
|
|
@if($entity->relationLoaded('chapter') && $entity->chapter)
|
2019-03-30 17:54:15 +01: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-12 23:57:50 +01:00
|
|
|
<p class="text-muted break-text">{{ $entity->preview_content ?? $entity->getExcerpt() }}</p>
|
2018-11-11 14:11:36 +01:00
|
|
|
</div>
|
2021-05-24 17:12:09 +02:00
|
|
|
|
|
|
|
@if(($showTags ?? false) && $entity->tags->count() > 0)
|
|
|
|
<div class="entity-item-tags mt-xs">
|
2021-08-22 14:15:58 +02:00
|
|
|
@include('entities.tag-list', ['entity' => $entity, 'linked' => false ])
|
2021-05-24 17:12:09 +02:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2018-11-11 14:11:36 +01:00
|
|
|
@endcomponent
|