@php $optionName = $optionField['name']; $optionValue = old_empty_or_null($optionField['name'], '') ?? ($optionField['value'] ?? ($optionField['default'] ?? '')); $urlInputField = [ 'name' => $optionName . '[use-duration-mode]', 'label' => 'Utiliser en mode durée', 'type' => 'switch', 'value' => isset($optionValue['use-duration-mode']) ? $optionValue['use-duration-mode'] : '', 'attributes' => [ 'placeholder' => ' ', 'class' => 'form-control border-top-0 border-left-0 border-right-0', 'style' => 'border-radius: 0', ], 'wrapper' => [ 'class' => 'form-floating mb-1', ], ]; @endphp
@include($crud->getFirstFieldView($urlInputField['type']), [ 'field' => $urlInputField, ])