<%= text_field_tag 'settings[oauth_consumer_key]', settings[:oauth_consumer_key], size: 50 %>

<%= password_field_tag 'settings[oauth_consumer_secret]', settings[:oauth_consumer_secret], size: 50 %>

<%= text_field_tag 'settings[webhook_token]', settings[:webhook_token], size: 50 %>

<%= check_box_tag 'settings[sandbox]', 1, settings[:sandbox] %>


<%= Qbo.oauth2_access_token_expires_at || 'N/A' %>

<%= Customer.count %> (@ <%= Customer.last_sync %>)

<%= Employee.count %> (@ <%= Employee.last_sync %>)

<%= Invoice.count %> (@ <%= Item.last_sync %>)

<%= Estimate.count %> (@ <%= Account.last_sync %>)

<%= Qbo.exists? ? Qbo.last_sync : 'Never synced' %>

Management & Synchronization
<%= link_to t(:label_sync_now_customers), sync_customers_path, class: 'button icon icon-reload' %> <%= link_to t(:label_sync_now_employees), employees_sync_path, class: 'button icon icon-reload' %> <%= link_to t(:label_sync_now_invoices), invoices_sync_path, class: 'button icon icon-reload' %> <%= link_to t(:label_sync_now_estimate), estimates_sync_path, class: 'button icon icon-reload' %>