{!! Form::open(['action' => 'PropertyController@contact_create','accept-charset' => 'UTF-8' , 'novalidate' => 'true']) !!}
{!! Form::text('name', '', ['class' => $errors->has('name') ? '' : 'focus', 'placeholder' => trans('messages.contactus.name')]) !!}
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{!! Form::text('property_name', (isset($result['UnparsedAddress'])? $result['UnparsedAddress'] : ''), ['class' => $errors->has('property_name') ? '' : 'focus', 'placeholder' => trans('messages.contactus.property_name')]) !!}
@if ($errors->has('property_name'))
{{ $errors->first('property_name') }}
@endif
{!! Form::email('email', '', ['class' => $errors->has('email') ? '' : 'focus', 'placeholder' => trans('messages.contactus.email_address')]) !!}
@if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{!! Form::tel('phone_no', '', ['class' => $errors->has('phone_no') ? '' : 'focus', 'placeholder' => trans('messages.contactus.phone_no')]) !!}
@if ($errors->has('phone_no'))
{{ $errors->first('phone_no') }}
@endif
{!! Form::textarea('message', '', ['class' => $errors->has('message') ? '' : 'focus', 'placeholder' => trans('messages.contactus.message')]) !!}
@if ($errors->has('message'))
{{ $errors->first('message') }}
@endif
@if(isset($recapErr) && !empty($recapErr))
{{$recapErr}}
@endif
@if (isset($property_url))
{!! Form::hidden('property_url', $property_url) !!}
@endif
@if (isset($result['ListingId']))
{!! Form::hidden('listing_id', $result['ListingId']) !!}
@endif
@if (isset($result['ListingKey']))
{!! Form::hidden('listing_key', $result['ListingKey']) !!}
@endif
@if (isset($result['ListAgentFullName']))
{!! Form::hidden('listing_agent_name', $result['ListAgentFullName']) !!}
@endif
@if (isset($result['ListingTerms']))
{!! Form::hidden('listing_terms', $result['ListingTerms']) !!}
@endif
@if (isset($result['ListingAgreement']))
{!! Form::hidden('listing_agreement', $result['ListingAgreement']) !!}
@endif
@if (isset($result['ListingContractDate']))
{!! Form::hidden('listing_contract_date', $result['ListingContractDate']) !!}
@endif
@if (isset($result['ListPrice']))
{!! Form::hidden('listing_price', $result['ListPrice']) !!}
@endif
@if (isset($result['ListOfficeName']))
{!! Form::hidden('listing_office_name', $result['ListOfficeName']) !!}
@endif
@if (isset($result['ListOfficePhone']))
{!! Form::hidden('listing_office_phone', $result['ListOfficePhone']) !!}
@endif
{!! Form::submit( trans('messages.contactus.send') , ['class' => 'contact_submit btn btn-primary w-auto']) !!}
{!! Form::close() !!}