@php $optionName = $optionField['name']; $optionValue = old_empty_or_null($optionField['name'], '') ?? ($optionField['value'] ?? ($optionField['default'] ?? '')); $urlInputField = [ 'name' => $optionName . '[url]', 'label' => 'Ajouter un lien sur le champ', 'type' => 'text', 'value' => isset($optionValue['url']) ? $optionValue['url'] : '', 'attributes' => [ 'placeholder' => ' ', 'class' => 'form-control border-top-0 border-left-0 border-right-0', 'style' => 'border-radius: 0', ], 'wrapper' => [ 'class' => 'form-floating mb-1', ], ]; $descriptionInputField = [ 'name' => $optionName . '[description]', 'label' => 'Description des acceptations', 'type' => 'textarea', 'value' => isset($optionValue['description']) ? $optionValue['description'] : '', 'attributes' => [ 'placeholder' => ' ', 'class' => 'form-control border-top-0 border-left-0 border-right-0', 'style' => 'border-radius: 0', 'rows' => 5, ], ]; @endphp