@props([ 'required' => false, 'existingUrl' => null, 'label' => 'Photo', ]) @php $retained = old('photo_data'); $preview = $retained ?: $existingUrl; $hasPreview = filled($preview); $inputId = $attributes->get('id') ?: 'photo_upload'; @endphp
@if ($retained) Cropped photo kept after form error. Change it anytime. @else Drag and zoom the face into the square, then save. @endif