{{-- VARIABLE || COMMENT || TYPE || REQUIRED || DEFAULT $id || The id of the input tag. || string || REQUIRED || $name || The name of the input tag. || string || REQUIRED || $helper || The helper of the input. || string || OPTIONNAL || __('crud.minicrud.text_warning') $label || The text displayed as a label. || string || OPTIONNAL || null $required || Is the field required ? || boolean || OPTIONNAL || false $value || The default value of the input. || string || OPTIONNAL || '' $model || The model we're creating/editing || Model class || OPTIONNAL || null --}} @if (!empty($label)) @endif @php $data = [ 'name' => $name, 'text' => old($name, $model->{$name} ?? ($value ?? '')), ]; @endphp
@include('modules.input-error', [ 'inputName' => $name, 'helperId' => "{$id}Help", 'helper' => $helper ?? __('crud.minicrud.text_warning') . '. ' . __('validation.min.string', [ 'attribute' => $input['label'], 'min' => 15, ]), ])