@foreach($fields as $field)
@php
$name = $field['name'];
$type = $field['type'] ?? 'text';
$value = old($name, $settings[$name] ?? '');
@endphp
@if($type === 'checkbox')
@elseif($type === 'file')
@if($value)
@endif
Leave empty to keep the current file.
@else
@if($type === 'textarea')
@else
@endif
@endif
@error($name)
{{ $message }}
@enderror