@if ($images)
	@foreach($images as $key => $image)
		<figure class="mr-2">
			<img src="{{ $image['url'] }}" class="img-thumbnail img-caption" style="max-height:92px;">
			<figcaption class="text-center pt-2">
				<button type="button" class="btn btn-xs btn-outline-secondary">
					<i class="fas fa-expand-alt"></i>
				</button>
				@if ($can_edit ?? true)
					<button type="button" class="btn btn-xs btn-outline-danger">
						<i class="fas fa-trash" data-index="{{ $key }}" data-id="{{ $image['id'] }}"></i>
					</button>
				@endif
			</figcaption>
		</figure>
	@endforeach
@endif

<script>
	@if ($can_edit ?? true)
		{{ $prefix ?? '' }}handleDeleteImages();
	@endif
	{{ $prefix ?? '' }}handleEnlargeImages();
</script>
