mirror of https://github.com/4xmen/xshop.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.4 KiB
PHTML
33 lines
1.4 KiB
PHTML
2 years ago
|
<div class="wizard-form">
|
||
|
<div class="alert alert-info pt-4">
|
||
|
<p>✓ {{__("The first and/or second image will be index image")}} <br>
|
||
|
✓ {{__("You can choose one or more image together")}} <br>
|
||
|
✓ {{__("Double click on image to change index image")}}
|
||
|
</p>
|
||
|
</div>
|
||
|
<div class="uploader-images">
|
||
|
<input type="file" multiple accept=".jpg,.png,.gif" id="upload-image-select"/>
|
||
|
</div>
|
||
|
|
||
|
<div id="upload-drag-drop">
|
||
|
<h2>
|
||
|
{{__("Click here to upload or drag and drop here")}}
|
||
|
</h2>
|
||
|
</div>
|
||
|
<div id="uploading-images" class="row">
|
||
|
@if (isset($product))
|
||
|
@foreach($product->getMedia() as $k => $media)
|
||
|
<div data-id="-1" data-key="{{$k}}"
|
||
|
class="image-index col-xl-3 col-md-4 border p-3 @if($k == $product->image_index) indexed @endif">
|
||
|
<div class="img-preview" style="background-image: url('{{$media->getUrl()}}')"></div>
|
||
|
<div class="btn btn-danger upload-remove-image">
|
||
|
<span class="fa fa-trash"></span>
|
||
|
</div>
|
||
|
<input type="hidden" name="medias[]" value="{{$media->id}}"/>
|
||
|
</div>
|
||
|
@endforeach
|
||
|
<input type="hidden" name="index_image" id="indexImage" value="{{$product->image_index}}">
|
||
|
@endif
|
||
|
</div>
|
||
|
</div>
|