@php if(!isset($type) ) { $type = 'text'; } @endphp
{{ Form::label('name', $label) }} {{ Form::$type($name, isset($value) ? $value : '', array('class' => 'form-control')) }} @if(isset($errors)) {{ $errors->first($name) }} @endif