@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)); $defaultImage = $attributes->get('preview_image') ?: RvMedia::getDefaultImage(); @endphp