@php $input_name = $name; $input_confirmation_name = $name . '_confirmation'; if ($locale) { $input_name = $locale . '[' . $name . ']'; $input_confirmation_name = $locale . '[' . $name . '_confirmation]'; } @endphp