'; } $fields = ''; if (!empty($data['fields'])) { foreach ($data['fields'] as $field) { $fields .= $this->element('genericElements/Configuration/Fields/scaffold.php', ['data' => $field]); } } echo sprintf( '

%s

%s
<%s/div>
', empty($ajax) ? 'col-8' : '', h($data['title']), $diagnostics, $fields ); ?>