2020-07-24 23:20:58 +00:00
|
|
|
@foreach($images as $index => $image)
|
|
|
|
<div>
|
2023-05-24 16:07:32 +00:00
|
|
|
<button component="event-emit-select"
|
2020-07-24 23:20:58 +00:00
|
|
|
option:event-emit-select:name="image"
|
|
|
|
option:event-emit-select:data="{{ json_encode($image) }}"
|
2023-01-28 16:06:11 +00:00
|
|
|
class="image anim fadeIn text-link"
|
2020-07-24 23:20:58 +00:00
|
|
|
style="animation-delay: {{ $index > 26 ? '160ms' : ($index * 25) . 'ms' }};">
|
|
|
|
<img src="{{ $image->thumbs['gallery'] }}"
|
|
|
|
alt="{{ $image->name }}"
|
|
|
|
width="150"
|
|
|
|
height="150"
|
|
|
|
loading="lazy"
|
|
|
|
title="{{ $image->name }}">
|
|
|
|
<div class="image-meta">
|
|
|
|
<span class="name">{{ $image->name }}</span>
|
2023-05-24 16:07:32 +00:00
|
|
|
<span class="date">{{ trans('components.image_uploaded', ['uploadedDate' => $image->created_at->format('Y-m-d')]) }}</span>
|
2020-07-24 23:20:58 +00:00
|
|
|
</div>
|
2023-05-24 16:07:32 +00:00
|
|
|
</button>
|
2020-07-24 23:20:58 +00:00
|
|
|
</div>
|
|
|
|
@endforeach
|
2023-05-26 13:30:59 +00:00
|
|
|
@if(count($images) === 0)
|
|
|
|
<p class="m-m text-bigger italic text-muted">{{ trans('common.no_items') }}</p>
|
|
|
|
@endif
|
2020-07-24 23:20:58 +00:00
|
|
|
@if($hasMore)
|
2023-04-26 13:23:28 +00:00
|
|
|
<div class="load-more">
|
|
|
|
<button type="button" class="button small outline">{{ trans('components.image_load_more') }}</button>
|
|
|
|
</div>
|
2020-07-24 23:20:58 +00:00
|
|
|
@endif
|