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