@props([ 'type'=>'text', // this mean we give a defult value to type . we don't need to use {this ?? 'text'} ' 'name', 'value'=>'', 'label'=>false, 'accept'=>' ' ]) {{--$attributes used to print all variable that pass to com so we use props to prevent print it twice and we can use -> to chice spacific att--}} @if($label ) @endif class([ 'form-control', 'is-invalid'=>$errors->has($name) ])}} > @error($name)