@props([
'name',
'allowThumb' => true,
'value',
'defaultImage' => RvMedia::getDefaultImage(),
'allowAddFromUrl' => $isInAdmin = is_in_admin(true) && auth()->guard()->check(),
])
@php
$value = BaseHelper::stringify($value);
@endphp
merge(['class' => "image-box image-box-$name"]) }}>
except('action') }}
/>
@if (! $isInAdmin)
except('action') }}
/>
@endif
!($allowThumb = Arr::get(
$attributes,
'allow_thumb',
true)),
])
>
{{ trans('core/base::forms.choose_image') }}
@if($allowAddFromUrl)
@endif