@component('entities.list-item-basic', ['entity' => $entity])
@if($showPath ?? false)
@if($entity->relationLoaded('book') && $entity->book)
{{ $entity->book->getShortName(42) }}
@if($entity->relationLoaded('chapter') && $entity->chapter)
@icon('chevron-right') {{ $entity->chapter->getShortName(42) }}
@endif
@endif
@endif
{{ $entity->preview_content ?? $entity->getExcerpt() }}
@if(($showTags ?? false) && $entity->tags->count() > 0)
@include('entities.tag-list', ['entity' => $entity, 'linked' => false ])
@endif
@if(($showUpdatedBy ?? false) && $entity->relationLoaded('updatedBy') && $entity->updatedBy)
{!! trans('entities.meta_updated_name', [
'timeLength' => $entity->updated_at->diffForHumans(),
'user' => e($entity->updatedBy->name)
]) !!}
@endif
@endcomponent