FleetCart/Modules/Media/Resources/views/admin/image_picker/multiple.blade.php

30 lines
1.2 KiB
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<div class="multiple-images-wrapper">
<h4>{{ $title }}</h4>
<button type="button" class="image-picker btn btn-default" data-input-name="{{ $inputName }}" data-multiple>
<i class="fa fa-folder-open m-r-5"></i>{{ trans('media::media.browse') }}
</button>
<div class="multiple-images">
<div class="col-md-12">
<div class="row">
<div class="image-list image-holder-wrapper clearfix">
@if ($files->isEmpty())
<div class="image-holder placeholder cursor-auto">
<i class="fa fa-picture-o"></i>
</div>
@else
@foreach ($files as $file)
<div class="image-holder">
<img src="{{ $file->path }}">
<button type="button" class="btn remove-image" data-input-name="{{ $inputName }}"></button>
<input type="hidden" name="{{ $inputName }}" value="{{ $file->id }}">
</div>
@endforeach
@endif
</div>
</div>
</div>
</div>
</div>