@props([ 'type' => 'text', 'name' => '', 'id' => null, 'value' => '', 'placeholder' => '', 'required' => false, ]) @php $finalValue = old($name, $value); if (is_array($finalValue)) { $finalValue = implode(', ', $finalValue); } @endphp