{!! Form::label('name', 'Nombre:') !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! $errors->first('name',':message') !!}
{!! Form::label('color', 'Color:') !!}
{!! Form::color('color', null, ['class' => 'form-control']) !!}
{!! $errors->first('color',':message') !!}
{{--additional Attributes--}}
@foreach ($customFields as $customField)
name") ? 'has-error' :'' }}">
{!! Form::label("custom_fields[$customField->name]", Str::title(str_replace('_',' ',$customField->name)).":") !!}
{!! Form::text("custom_fields[$customField->name]", null, ['class' => 'form-control typeahead','data-source'=>json_encode($customField->suggestions),'autocomplete'=>is_array($customField->suggestions)?'off':'on']) !!}
{!! $errors->first("custom_fields.$customField->name",':message') !!}
@endforeach
{{--end additional attributes--}}