@component('entities.list-item-basic', ['entity' => $entity, 'classes' => (($locked ?? false) ? 'disabled ' : '') . ($classes ?? '') ])
@if($locked ?? false)
@icon('lock'){{ trans('entities.entity_select_lack_permission') }}
@endif
@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