@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
@if($f->type === 'boolean') @else @switch($f->type) @case('textarea') @case('lines') @case('itinerary') @break @case('select') @break @case('belongsTo') @break @case('number') @break @case('datetime') @break @case('email') @break @case('password') @break @case('image') @php $current = $model?->{$name}; @endphp @if($current)
@unless($f->required) @endunless
@endif

{{ $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)
@foreach($current as $ref) @endforeach

Untick a photo to remove it when you save.

@endif

Add 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