@if (isset($settings->content->custom_fields) && $settings->content->custom_fields)
{!! Form::label('data[Order][extra][user][postcode]', __('Postcode')) !!}
{!! Form::text(
'data[Order][extra][user][postcode]',
(
isset($data->Order->extra->user->postcode) ?
$data->Order->extra->user->postcode : null
),
[
'data-url' => action('LocationsController@secure_get_address.json'),
'class' => 'form-control postcode-field',
'data-name' => 'postcode',
'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false)
]
) !!}
{!! Form::label('data[Order][extra][user][manual][address]', __('Address')) !!}
{!! Form::text(
'data[Order][extra][user][manual][address]',
(
isset($data->Order->extra->user->address) ?
$data->Order->extra->user->address : null
),
[
'class' => 'form-control address-field',
'data-name' => 'address'
]
) !!}
{!! Form::label('data[Order][extra][user][manual][postcode]', __('Postcode')) !!}
{!! Form::text(
'data[Order][extra][user][manual][postcode]',
(
isset($data->Order->extra->user->postcode) ?
$data->Order->extra->user->postcode : null
),
[
'class' => 'form-control postcode-field',
'data-name' => 'postcode',
]
) !!}
{!! Form::label('data[Order][extra][user][country]', __('Country')) !!}
{!! Form::select(
'data[Order][extra][user][country]',
countries(),
(
isset($data->Order->extra->user->country) ?
$data->Order->extra->user->country : 'GB'
),
[
'class' => 'form-control address-field',
'data-name' => 'country',
'empty' => true
]
) !!}
{!! Form::label('data[Order][extra][user][postcode]', __('Postcode')) !!}
{!! Form::text(
'data[Order][extra][user][postcode]',
(
isset($data->Order->extra->user->postcode) ?
$data->Order->extra->user->postcode : null
),
[
'class' => 'form-control',
'data-name' => 'postcode',
'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false)
]
) !!}