@inject('htmlHelper', 'App\Blueprint\Facades\HtmlServer')
@forelse($fieldGroups as $group)

{{ $group->getTitle() }} {{ _t('settings.configurations') }}

{!! $htmlHelper::renderFieldGroup($group->id, null, ['defaultValueMethod' => 'config', 'class' => $group->children()->count() ? 'hasSubGroup' : '']) !!} @if($group->children()->count())
@foreach($group->children as $childGroup)
{{ $childGroup->getTitle() }}
@endforeach
@foreach($group->children as $childGroup)

{{ $childGroup->getTitle() }} {{ _t('settings.configurations') }}

{!! $htmlHelper::renderFieldGroup($childGroup->id, null, ['defaultValueMethod' => 'config']) !!}
@endforeach
@endif
@empty
{{ _t('settings.Save') }}
@endforelse