@php $fieldName = $fieldName ?? 'unit[]'; $value = (string) ($value ?? ''); $units = $units ?? []; $placeholder = $placeholder ?? 'Unit'; @endphp