<input type="{{ !isset($type)? 'text':$type }}" value="{{ !isset($value)? '':$value }}">
info at phpclasses dot org