@props(['label', 'name', 'action', 'deleteAction' => null, 'canDelete' => false, 'value' => null, 'size' => '2xl', 'rounded' => null, 'showLabel' => true, 'showChooseImageLink' => true, 'hiddenCropper' => false, ]) @php Assets::addStyles('cropper') ->addScripts('cropper') ->addStylesDirectly('vendor/core/core/base/css/crop-image.css') ->addScriptsDirectly('vendor/core/core/base/js/crop-image.js'); $imageClasses = Arr::toCssClasses([ 'image-preview crop-image-original', "avatar avatar-$size", "rounded-$rounded" => $rounded, ]); @endphp
@if($showLabel) {{ $label }} @endif
merge(['class' => $imageClasses, 'src' => $value, 'alt' => $label]) }} /> @if(!$hiddenCropper || $canDelete)
@if(!$hiddenCropper) @endif @if($canDelete) @endif
@endif
@if($showChooseImageLink && !$hiddenCropper) {{ trans('core/base::forms.choose_image') }} @endif
@if(!$hiddenCropper)
{{ trans('core/base::base.close') }} {{ trans('core/base::forms.save_and_continue') }}
@endif