2018-11-11 21:11:36 +08:00
|
|
|
<?php $type = $entity->getType(); ?>
|
|
|
|
<a href="{{ $entity->getUrl() }}" class="{{$type}} {{$type === 'page' && $entity->draft ? 'draft' : ''}} {{$classes ?? ''}} entity-list-item" data-entity-type="{{$type}}" data-entity-id="{{$entity->id}}">
|
2019-08-25 01:26:28 +08:00
|
|
|
<span role="presentation" class="icon text-{{$type}}">@icon($type)</span>
|
2018-11-11 21:11:36 +08:00
|
|
|
<div class="content">
|
2021-11-13 20:44:27 +08:00
|
|
|
<h4 class="entity-list-item-name break-text">{{ $entity->preview_name ?? $entity->name }}</h4>
|
2018-11-11 21:11:36 +08:00
|
|
|
{{ $slot ?? '' }}
|
|
|
|
</div>
|
|
|
|
</a>
|