{!! Form::model($lead, ['route' => ['lead.update', $lead->id], 'id' => 'customer_start_quote_form', 'class' => 'my-3' ]) !!} @method('PATCH') @if(!empty($lead->xero_id)) @endif
Xero id: {!! Form::text('xero_id', $lead->xero_id) !!}
View in Xero
{!! Form::close() !!}
{!! Form::open( ['route' => ['xero.contact'], 'files' => false, 'id' => 'xero_contact_form' ]) !!} {!! Form::hidden('lead_id', $lead->id) !!}
Full name: {!! Form::text('fullname', $lead->fullname) !!}
Email: {!! Form::email('email', $lead->getEmail()) !!}
Line 1: {!! Form::text('line1', $lead->address->address_line_1) !!}
Line 2: {!! Form::text('line2', $lead->address->address_line_2) !!}
Line 3: {!! Form::text('line3', $lead->address->address_line_3) !!}
City: {!! Form::text('city', $lead->address->city) !!}
County: {!! Form::text('county', $lead->address->county) !!}
Postcode: {!! Form::text('postcode', $lead->address->postcode) !!}
{!! Form::close() !!}