@foreach($fields as $field)
@php
$field['config']['hotizontalRows'] = true;
@endphp
@include(sprintf('back-office.components.form.fields.%s', $field['type']), $field)
@if ($field['type'] == 'password')
@include(sprintf('back-office.components.form.fields.password'),
$field = [
'name' => 'password_confirmation',
'type' => 'password',
'label' => 'Retapez mot de passe',
'config' =>['hotizontalRows' => true]
])
@endif
@endforeach
@csrf