{{-- Частичный шаблон: рендер одного поля веб-формы. Используется внутри components/web-form.blade.php. Переменная: $field — массив {label, name, type, width, required, options} --}} @php $required = !empty($field['required']); $type = $field['type'] ?? 'text'; $name = $field['name'] ?? ''; $label = $field['label'] ?? ''; $options = $field['options'] ?? []; @endphp @if($type !== 'checkbox') @endif @if($type === 'textarea') @elseif($type === 'select') @elseif($type === 'checkbox')