@php ($attributes = (isset($value['attributes']) ? $value['attributes'] : [])) @php ($attributes['id'] = (isset($attributes['id']) ? $attributes['id'] : $key)) @php ($attributes['class'] = (isset($attributes['class']) ? $attributes['class'] : 'form-control')) @php ($attributes['class'] .= ($errors->has($key) ? ' is-invalid' : '')) @php ($floatOff = ['select', 'multiselect', 'file', 'radio', 'checkbox', 'editor', 'date', 'custom', 'switch']) @php ($labelWidth = (isset($value['label_width']) ? $value['label_width'] : 'col-lg-2 col-md-2 col-sm-6 col-xs-12 text-right')) @php ($fieldWidth = (isset($value['field_width']) ? $value['field_width'] : 'col-lg-6 col-md-6 col-xs-12 col-sm-12')) @php ($value['value'] = isset($value['value']) ? $value['value'] : null) @if($coverClass)
@endif @if(isset($value['label']) && $value['label'])
@if(isset($value['help']))

{{ $value['help'] }}

@endif
@endif
@if($value['type'] == 'text') {!! Form::text($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'label') @php ($attributes['readonly'] = 'true') @php ($attributes['disabled'] = 'true') {!! Form::text($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'email') {!! Form::email($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'number') {!! Form::number($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'date') @php($attributes['class'] .= ' datepicker') {!! Form::text($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'time') @php($attributes['class'] .= ' timepicker') {!! Form::text($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'datetime') @php($attributes['class'] .= ' datetimepicker') {!! Form::text($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'password') {!! Form::password($key, $attributes) !!} @elseif($value['type'] == 'textarea') {!! Form::textarea($key, $inputValue, $attributes) !!} @elseif($value['type'] == 'tag') @php($attributes['class'] .= ' tags-input') @php($attributes['data-role'] = 'tagsinput') {!! Form::text($key, $inputValue, $attributes) !!} @once @push('page_css') @endpush @push('page_script') @endpush @endonce @elseif($value['type'] == 'editor') @once @push('page_script') @endpush @endonce