@props(['disabled' => false, 'image' => '']) @php switch ($image) { case '': $imagePreview = asset('img/profile.png'); $text = __('Upload'); break; case gettype($image) != 'string': $imagePreview = $image->temporaryUrl(); $text = __('Modify'); break; default: $imagePreview = asset('storage/images/'.$image); $text = __('Modify'); break; } @endphp