Fixes on widget uploder
This commit is contained in:
@@ -2,23 +2,23 @@
|
||||
@foreach($images as $key => $image)
|
||||
<figure class="mr-2">
|
||||
<img src="{{ $image['url'] }}" class="img-thumbnail img-caption" style="max-height:92px;">
|
||||
@if ($can_edit ?? true)
|
||||
<figcaption class="text-center pt-2">
|
||||
<button type="button" class="btn btn-xs btn-outline-secondary">
|
||||
<i class="fas fa-expand-alt"></i>
|
||||
</button>
|
||||
<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 }}"></i>
|
||||
</button>
|
||||
</figcaption>
|
||||
@endif
|
||||
@endif
|
||||
</figcaption>
|
||||
</figure>
|
||||
@endforeach
|
||||
@endif
|
||||
|
||||
@if ($can_edit ?? true)
|
||||
<script>
|
||||
<script>
|
||||
@if ($can_edit ?? true)
|
||||
{{ $prefix ?? '' }}handleDeleteImages();
|
||||
{{ $prefix ?? '' }}handleEnlargeImages();
|
||||
</script>
|
||||
@endif
|
||||
@endif
|
||||
{{ $prefix ?? '' }}handleEnlargeImages();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user