{!! Form::open(['id' => 'form','novalidate' => 'novalidate' , 'onsubmit' => 'return submitAvalaraData();']) !!}
{!! Form::label('avalara_username','Account Number:') !!}
{!! Form::text('avalara_username', isset($avalara->field_1) ? $avalara->field_1 : '' , ['class' => 'form-control','placeholder' => 'Account Number']) !!}
{!! Form::label('avalara_password','License Key:') !!}
{!! Form::text('avalara_password', isset($avalara->field_2) ? $avalara->field_2 : '' , ['class' => 'form-control','placeholder' => 'License Key']) !!}
{!! Form::label('discount_tax','Discount line item') !!}
{!! Form::select('discount_tax', getProductTaxClass(), optional($avalaraSettings)['discount'], [ 'class' => 'form-control' ,'placeholder' => 'Select','style' => 'width:100%;']) !!}
{!! Form::label('shipping_tax','Shipping Line Item') !!}
{!! Form::select('shipping_tax', getProductTaxClass(), optional($avalaraSettings)['ship'], [ 'class' => 'form-control' ,'placeholder' => 'Select','style' => 'width:100%;']) !!}
{!! Form::label('card_fee','Credit Card Processing Fee Line Item') !!}
{!! Form::select('card_fee', getProductTaxClass(), optional($avalaraSettings)['card_fee'], [ 'class' => 'form-control' ,'placeholder' => 'Select','style' => 'width:100%;']) !!}
{!! Form::label('company_code','Company Code') !!}
{!! Form::select('company_code', $companies, optional($avalaraSettings)['company'], [ 'class' => 'form-control' ,'placeholder' => 'Select','style' => 'width:100%;']) !!}
{!! Form::checkbox('is_active' , 1 , isset($avalara->is_active) ? $avalara->is_active : 0 ) !!}
{!! Form::label('is_active','Enable ?') !!}
{!! Form::checkbox('document_record' , 1 , optional($avalaraSettings)['record'] ?? 0 ) !!}
{!! Form::label('document_record','Disable Document Recording') !!}
{!! Form::checkbox('is_live' , 1 , isset($avalara->is_live) ? $avalara->is_live : 0 ) !!}
{!! Form::label('is_live','Production Mode') !!}