2021-08-18 17:04:51 +02:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="name">Nom *</label>
|
|
|
|
|
<input type="text" id="name" name="name" class="form-control" placeholder="Nom de la gamme" value="{{ old('name', $range->name ?? '') }}" required>
|
|
|
|
|
</div>
|
2021-09-06 13:36:50 +02:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="picture">Image *<small class="text-muted">- JPEG/PNG, 2Mo max. Dimensions {{ Config::get('theme.product_image_maxwidth') }} px par {{ Config::get('theme.product_image_maxheight') }} px</small></label></br>
|
|
|
|
|
<input type="file" id="picture" name="picture" accept="image/png, image/jpeg">
|
|
|
|
|
@if (isset($range->picture) and $range->picture !== null)
|
|
|
|
|
<br/>
|
|
|
|
|
<br/>
|
|
|
|
|
<a data-fancybox="gallery" href="{{ asset('/images/ranges/' . $range->picture ) }}">
|
|
|
|
|
<img src="{{ asset('/images/ranges/' . $range->picture ) }}" alt="{{$range->name}}" style="max-height: 100px">
|
|
|
|
|
</a>
|
|
|
|
|
@endif
|
|
|
|
|
</div>
|