@php $name = $f->name; $id = 'f_' . $name; $value = old($name, $model ? $f->display($model) : ($prefill[$name] ?? $f->display(null))); $cls = 'field ' . ($f->half ? 'half' : 'full') . ($errors->has($name) ? ' has-error' : ''); @endphp
{{ $current ? 'Choose a file to replace the photo. ' : '' }}JPG, PNG or WebP, up to 6 MB. Large photos are resized automatically.
@break @case('images') @php $current = (array) ($model?->{$name} ?? []); @endphp @if($current)Untick a photo to remove it when you save.
@endifAdd one or more photos. JPG, PNG or WebP, up to 6 MB each.
@break @default placeholder) placeholder="{{ $f->placeholder }}" @endif> @endswitch @endif @if($f->help && ! in_array($f->type, ['image', 'images'], true)){{ $f->help }}
@endif @error($name){{ $message }}
@enderror @foreach($errors->get($name . '.*') as $msgs)@foreach($msgs as $m){{ $m }}
@endforeach @endforeach