2019-04-06 13:36:17 -04:00
|
|
|
<div class="image-picker" image-picker="{{$name}}" data-default-image="{{ $defaultImage }}" data-resize-height="{{ $resizeHeight }}" data-resize-width="{{ $resizeWidth }}" data-current-id="{{ $currentId ?? '' }}" data-resize-crop="{{ $resizeCrop ?? '' }}">
|
2016-12-24 10:21:19 -05:00
|
|
|
|
2019-02-03 08:45:45 -05:00
|
|
|
<div class="grid half">
|
|
|
|
<div class="text-center">
|
|
|
|
<img @if($currentImage && $currentImage !== 'none') src="{{$currentImage}}" @else src="{{$defaultImage}}" @endif class="{{$imageClass}} @if($currentImage=== 'none') none @endif" alt="{{ trans('components.image_preview') }}">
|
|
|
|
</div>
|
|
|
|
<div class="text-center">
|
|
|
|
<button class="button outline small" type="button" data-action="show-image-manager">{{ trans('components.image_select_image') }}</button>
|
|
|
|
<br>
|
|
|
|
<button class="text-button muted" data-action="reset-image" type="button">{{ trans('common.reset') }}</button>
|
2016-12-24 10:21:19 -05:00
|
|
|
|
2019-02-03 08:45:45 -05:00
|
|
|
@if ($showRemove)
|
|
|
|
<span class="sep">|</span>
|
|
|
|
<button class="text-button muted" data-action="remove-image" type="button">{{ trans('common.remove') }}</button>
|
|
|
|
@endif
|
|
|
|
</div>
|
|
|
|
</div>
|
2016-12-24 10:21:19 -05:00
|
|
|
|
2017-07-12 04:14:37 -04:00
|
|
|
<input type="hidden" name="{{$name}}" id="{{$name}}" value="{{ isset($currentId) && ($currentId !== 0 && $currentId !== false) ? $currentId : $currentImage}}">
|
2017-12-06 12:32:29 -05:00
|
|
|
</div>
|