@props([
    'class'       => '',     // extra CSS classes
    'type'        => 'text', // input type
    'name'        => '',     // input name
    'value'       => '',     // input value
    'disabled'    => false,  // disabled flag
    'placeholder' => '',     // placeholder text
    'style'       => '',     // raw style string
    'required'    => false,  // true/false or truthy value
])

<input type="{{ $type }}"
       name="{{ $name }}"
       value="{{ $value }}"
       placeholder="{{ $placeholder }}"
       {{ $attributes->merge(['class' => 'text '.$class]) }}
       @if($style !== '') style="{{ $style }}" @endif
       @required($required)
       @disabled($disabled) />
