@php $type = $type ?? 'text'; $unit = $unit ?? null; $step = $step ?? null; $help = $help ?? null; $value = old($name, $consult->{$name} ?? ''); $readOnly = $readOnly ?? false; @endphp