@php /** * @name Modal aggiungi destinazione cliente * @version 1.0.0 */ @endphp
{!! Form::open([ 'url' => Request::url(), 'method' => 'post', 'class' => 'form-horizontal frm-loader', 'id' => 'frm-add-customer-destination', 'novalidate' => true, ]) !!} {!! Form::hidden('customer_id', request()->route('id') ) !!}
@php global $add_destination_customer_fields; @endphp @php if (isset($add_destination_customer_fields)) { foreach ($add_destination_customer_fields as $key => $field) { $columns = []; if ($key == 'email') { $field = [$field, $add_destination_customer_fields['phone']]; $columns = [7, 5]; } if ($key == 'postal_code') { $field = [$field, $add_destination_customer_fields['city'], $add_destination_customer_fields['province']]; $columns = [5, 4, 3]; } if ($key == 'city' || $key == 'province' || $key == 'phone') { continue; } get_form_fields($field, false, true, $columns); } } @endphp
{!! Form::button(__t('Aggiungi destinazione'), ['type' => 'submit', 'class' => 'btn btn-block btn-primary']) !!}
{!! Form::close() !!}