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