@if (isset($data->Order->user_id) && $data->Order->user_id) @else
{!! Form::label('data[Order][user_id]', t('Search by user\'s email')) !!} {!! Form::text( 'data[Order][user_id]', null, [ 'id' => 'user-autosomplete', 'class' => 'form-control autocomplete picker', 'data-url' => action( 'Payment/UsersController@secure_autocomplete.json', [$venue->id] ) ] ) !!}

@endif
{!! Form::label('data[Order][extra][user][first_name]', __('First Name')) !!} {!! Form::text( 'data[Order][extra][user][first_name]', ( isset($data->Order->extra->user->first_name) ? $data->Order->extra->user->first_name : null ), [ 'data-name' => 'first_name', 'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false) ] ) !!}
{!! Form::label('data[Order][extra][user][last_name]', __('Last Name')) !!} {!! Form::text( 'data[Order][extra][user][last_name]', ( isset($data->Order->extra->user->last_name) ? $data->Order->extra->user->last_name : null ), [ 'data-name' => 'last_name', 'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false) ] ) !!}
{!! Form::label('data[Order][extra][user][email]', __('Email')) !!} {!! Form::email( 'data[Order][extra][user][email]', ( isset($data->Order->extra->user->email) ? $data->Order->extra->user->email : null ), [ 'class' => 'form-control ' . ( isset($settings->content->email_empty_manual_order) && $settings->content->email_empty_manual_order ? '' : 'is-required' ), 'data-name' => 'email', 'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false) ] ) !!} @if (isset($settings->content->email_empty_manual_order) && $settings->content->email_empty_manual_order) @t('If not provided a random email will be generated') @endif
{!! Form::label( 'data[Order][extra][user][phone]', __('Phone') ) !!} {!! Form::text( 'data[Order][extra][user][phone]', ( isset($data->Order->extra->user->phone) ? $data->Order->extra->user->phone : null ), [ 'class' => 'form-control', 'data-name' => 'phone', 'disabled' => ((isset($data->Order->user_id) && $data->Order->user_id) ? true : false) ] ) !!}
@if (isset($settings->content->custom_fields) && $settings->content->custom_fields)
{!! Form::label('data[Order][extra][user][company]', __('Company')) !!} {!! Form::text( 'data[Order][extra][user][company]', ( isset($data->Order->extra->user->company) ? $data->Order->extra->user->company : null ), [ 'class' => 'form-control', 'data-name' => 'company', ] ) !!}
{!! 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) ] ) !!}
@else
{!! 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) ] ) !!}
@endif
@if ( !isset($settings->content->user_data->remove_gender) || !$settings->content->user_data->remove_gender )
{!! Form::label('data[User][gender]', t('Gender'))!!}
{!! Form::radio( 'data[Order][extra][user][gender]', 'male', ( isset($data->Order->extra->user->gender) && $data->Order->extra->user->gender == 'male' ? true : false ) ) !!}
{!! Form::radio( 'data[Order][extra][user][gender]', 'female', ( isset($data->Order->extra->user->gender) && $data->Order->extra->user->gender == 'female' ? true : false ) ) !!}
@if (isset($errors->Order->extra->user->gender)) {{ $errors->Order->extra->user->gender[0] }} @endif
@endif