2019-03-31 00:54:15 +08:00
|
|
|
<div class="entity-list">
|
2016-07-03 16:58:45 +08:00
|
|
|
@if(count($entities) > 0)
|
|
|
|
@foreach($entities as $index => $entity)
|
|
|
|
|
2022-07-13 22:23:03 +08:00
|
|
|
@include('entities.list-item', [
|
|
|
|
'entity' => $entity,
|
|
|
|
'showPath' => true,
|
|
|
|
'locked' => $permission !== 'view' && !userCan($permission, $entity)
|
|
|
|
])
|
|
|
|
|
2016-07-03 16:58:45 +08:00
|
|
|
@if($index !== count($entities) - 1)
|
|
|
|
<hr>
|
|
|
|
@endif
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
@else
|
2019-03-31 00:54:15 +08:00
|
|
|
<p class="text-muted text-large p-xl">
|
2016-12-04 22:08:04 +08:00
|
|
|
{{ trans('common.no_items') }}
|
2016-07-03 16:58:45 +08:00
|
|
|
</p>
|
|
|
|
@endif
|
|
|
|
</div>
|