{!! Form::open([
'url' => Request::url(),
'method' => 'post',
'class' => 'form-horizontal frm-loader',
'id' => 'frm-add-customer',
'novalidate' => true,
]) !!}
@php
global $customer_register_fields;
@endphp
@php
if (isset($customer_register_fields)) {
foreach ($customer_register_fields as $key => $field) {
$columns = [];
if ($key == 'postal_code') {
$field = [$field, $customer_register_fields['city'], $customer_register_fields['province']];
$columns = [5, 4, 3];
}
if ($key == 'email') {
$field = [$field, $customer_register_fields['phone']];
$columns = [7, 5];
}
if ($key == 'city' || $key == 'province' || $key == 'phone') {
continue;
}
get_form_fields($field, false, true, $columns);
}
}
@endphp
{!! Form::close() !!}
{!! Form::button(__t('Aggiungi Cliente'), ['type' => 'submit', 'class' => 'btn btn-block btn-primary']) !!}