@extends('layouts/default') @section('commonbuttons')
@if(isset($settingData['id'])) {{config('app.tabLables')['dashboard']}} @if($firstTimeSetting == false) {{config('app.tabLables')['advance_settings']}} @endif {{config('app.tabLables')['unsync_orders']}} {{config('app.tabLables')['seller_contacts']}} {{config('app.tabLables')['contact_us']}}
@endif @stop @section('title') Xero Sync Settings @stop @section('content')
@if (\Cookie::get('welcomeMessage') != 'true') @endif @include('notifications')
@if($xero_base_currency != $wix_currency && $currencyFlg == false)
Your Store is in {{$wix_currency}} and your Xero base currency is in {{$xero_base_currency}}.
To enable multi currency and add more currencies in your Xero account, Click Here.

Once you are done with the setting change in Xero click on the 'Reload Page' button below.
@endif
{!! Form::open(array('url' => '#','id' => 'create-form','autocomplete'=>'off')) !!} {{ csrf_field() }}
XERO Prefix (For connecting multiple Wix stores to one XERO account)
@if($editable == 'false') @endif
Disable Prefix but Prefix is ideal if you have multiple Wix store connected with same Xero
@if(!empty($prefixLine) && $editable == 'true')

Another Wix store is already connected with this Xero organization using prefix : {{ $prefixLine }}. Please use a different prefix.

@endif
What date do you want your data sync to XERO to start from?
@if($editable == "false") @endif

If you prefer to sync orders before "{{date('01 F Y',strtotime('-2 Months'))}}", please contact our support team from the Contact us page.

There might be a small one-time fee for the backdated order sync based on the total orders required to be synced.

XERO Customer Creation for Order Sync
{{ Form::select('customer_creation', $customerType_list , Input::old('customer_creation', @$settingData['customer_creation']), array('id'=>'customer_creation','class'=>'form-control select2', 'style'=>'width:100%' , 'onchange' => "fetchAllCutomer(); customerTypeChange()")) }}





If you want payments from specific payment methods to go to specific account in Xero, please select them appropriately below.

The payments will be deposited in the account selected above if the payment method does not match either of the methods below or if the account is not selected.

Xero Account for Wix Payment Method
- OR -
Payment received through Wix will be deposited in this account.
Xero Account for PayPal Payments
- OR -
Payment received through PayPal will be deposited in this account.
Xero Account for AliPay Payment Method
- OR -
Payment received through AliPay will be deposited in this account.
Xero Account for Manual Payment Method
- OR -
Payment received through Manual will be deposited in this account.
Xero Account for POS Payment Method
- OR -
Payment received through POS will be deposited in this account.
@if(!empty($gateway_map)) @foreach($gateway_map as $gateway_map_key=>$gateway_map_value)
Xero Account for {{$gateway_map_key}} Payment Method
- OR -
Payment received through {{$gateway_map_key}} will be deposited in this account.
@endforeach @endif
Tax Exempt If you are not collecting tax from your customer or you are not required to collect tax. Please check this checkbox.
Sales TaxCode
- OR -
Zero TaxCode
{{ Form::select('zero_taxcode', $zeroTaxDataList , Input::old('zero_taxcode', @$settingData['zero_taxcode']), array('class'=>'form-control select2', 'style'=>'width:100%' , 'id'=>'zero_taxcode')) }}
@if($xero_base_currency == "CAD" || $wix_currency == "CAD" || $SpyCountry=='CA')

The following Tax Configuration is mandatory for Canada stores charging differential tax rates based on the customer province. If you do not select a Tax Rate for specific province, the rate selected above will be used as Default.

@endif @if($xero_base_currency == "GBP" || $SpyCountry=='UK')

The following Tax Configuration is mandatory for Europe stores charging differential tax rates based on the customer country. If you do not select a Tax Rate for specific country, the rate selected above will be used as Default.

@endif
{{ Form::close() }}
@if($adminFlg == false && $userAccess->role != 'Manager') @else
{{$company_name}}
@endif
@if($xero_base_currency == "CAD" || $wix_currency == "CAD" || $SpyCountry=='CA') @endif @if($xero_base_currency == "GBP" || $SpyCountry=='UK') @endif @stop @section('moar_scripts') @stop