@php $data = form_merge_form($form['fields'], $data, true) @endphp
@foreach($data as $key => $fields)

{!!$form['groups'][$key]!!}

@foreach($fields as $key => $field)
{!! Form::input($key) ->apply($field) ->mode($mode) !!}
@endforeach
@endforeach