@props([ 'name', 'value', 'defaultImage' => RvMedia::getDefaultImage(), 'allowAddFromUrl' => $isInAdmin = is_in_admin(true) && auth()->guard()->check(), ]) @php $value = BaseHelper::stringify($value); $allowThumb = $attributes->get('allow_thumb', $attributes->get('allow-thumb', true)); @endphp
merge(['class' => "image-box image-box-$name"]) }}> except('action') }} /> @if (! $isInAdmin) except('action') }} /> @endif
! $allowThumb ]) >
!$value]) data-default="{{ $defaultImage = $defaultImage ?: RvMedia::getDefaultImage() }}" src="{{ RvMedia::getImageUrl($value, $allowThumb ? 'thumb' : null, false, $defaultImage) }}" alt="{{ trans('core/base::base.preview_image') }}" /> empty($value), '--bb-btn-font-size: 0.5rem']) class="image-picker-remove-button p-0" :pill="true" data-bb-toggle="image-picker-remove" size="sm" icon="ti ti-x" :icon-only="true" :tooltip="trans('core/base::forms.remove_image')" />
{{ trans('core/base::forms.choose_image') }} @if($allowAddFromUrl)
{{ trans('core/media::media.or') }} {{ trans('core/media::media.add_from_url') }}
@endif