{{ __('CMD K') }}
@if (session('success'))
{{ session('success') }}
@endif @if (isset($errors) && $errors->any())
{{ $errors->first() }}
@endif
@csrf
{{ __('Admin · Project settings') }}

{{ __('HubSpot') }} {{ __('settings') }}.

{{ __('Configure your HubSpot app credentials once for the whole platform. Workspaces then connect their own HubSpot portal via OAuth — WaDesk pushes WhatsApp customers and orders into HubSpot as contacts and deals.') }}

{{ __('All integrations') }}
{{-- ─────────────────────────────────────────────────────── Step-by-step "How to create your HubSpot app" guide. ─────────────────────────────────────────────────────── --}}
{{ __('Getting started') }}

{{ __('How to create your HubSpot app') }}

{{ __('Follow these five steps on the HubSpot developer portal to issue the credentials you paste below. This only happens once for the whole platform — every workspace then connects its own HubSpot account via OAuth.') }}

    {{-- Step 1 --}}
  1. 1
    {{ __('Create a HubSpot developer account') }}

    Go to {{ __('developers.hubspot.com') }} and create a free developer (app) account. This is separate from your normal HubSpot CRM login.

  2. {{-- Step 2 --}}
  3. 2
    {{ __('Create an app') }}

    In the developer account open {{ __('Apps → Create app') }}. Give it your platform name and logo (shown to merchants on the OAuth consent screen).

  4. {{-- Step 3 --}}
  5. 3
    {{ __('Set the redirect URL') }}

    In the app's {{ __('Auth') }} tab, under {{ __('Redirect URLs') }}, paste this exactly. It must match what we send or OAuth fails with {{ __('redirect_uri mismatch') }}:

    {{ __('Note:') }} non-localhost redirect URLs must be HTTPS in production. For local testing HubSpot allows {{ __('http://localhost') }} (the literal host localhost, not an IP).

  6. {{-- Step 4 --}}
  7. 4
    {{ __('Select scopes & copy credentials') }}

    Still in the {{ __('Auth') }} tab, add the scopes below under {{ __('Scopes') }}, then copy the {{ __('Client ID') }} and {{ __('Client secret') }} into the box below. The scope list in the app and the scopes you paste here must match.

  8. {{-- Step 5 --}}
  9. 5
    {{ __('Enable HubSpot here & save') }}

    Tick the {{ __('Enable HubSpot') }} switch in the credentials box and hit {{ __('Save changes') }}. Workspace owners can now connect their HubSpot account at /hubspot.

{{ __('hubspot · oauth credentials') }}

{{ __('App credentials') }}

{{ __('install-status') }}

{{ __('Install readiness') }}

@php $checks = [ 'credentials saved' => $clientId !== '' && $hasSecret, 'feature enabled' => $enabled, 'redirect set' => $redirectUri !== '', ]; @endphp @foreach ($checks as $label => $ok) {{ $ok ? '✓ ' : '○ ' }}{{ $label }} @endforeach
{{ __('usage') }}

{{ __('Live across workspaces') }}

{{ __('Portals connected') }}
{{ number_format($integrationsCount) }}
{{ __('Active connections') }}
{{ number_format($activeCount) }}
{{ __('Records pushed') }}
{{ number_format($logsCount) }}