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

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

{{ __("Slack doesn't need any central app credentials — each workspace creates its own Slack app and pastes its Bot Token + Signing Secret. Your job here is just to flip the platform-level switch and (optionally) review usage. The slash command lets a teammate send a WhatsApp message right from Slack.") }}

{{ __('All settings') }}
{{-- Feature toggle --}}
{{ __('slack · platform toggle') }}

{{ __('Enable Slack') }}

{{ __('When enabled, workspace owners see the') }} {{ __('Connect now') }} {{ __('button on the') }} {{ __('Integrations') }} {{ __('page and can paste their Bot Token + Signing Secret at') }} /slack. {{ __('Each connection is workspace-scoped — the token + secret are encrypted at rest and only used to verify that workspace\'s Slack requests.') }}
{{-- Step-by-step guide --}}
{{ __('walkthrough you can share with customers') }}

{{ __('How a workspace connects Slack') }}

{{ __('Every workspace makes its own Slack app — six steps, ~5 minutes. We never see anything until they paste the two values at') }} /slack.

    @php $steps = [ ['Create a Slack app', 'Go to api.slack.com/apps → Create New App → From scratch. Name it and pick the Slack workspace.'], ['Add bot scopes', 'Open OAuth & Permissions → Bot Token Scopes → add commands and chat:write (add users:read only if you mention real Slack members).'], ['Create the slash command', 'Open Slash Commands → Create New Command. Command /wa, and set the Request URL to the receiver shown in the sidebar.'], ['Install the app', 'Click Install to Workspace → authorize. Copy the Bot User OAuth Token (starts with xoxb-).'], ['Copy the Signing Secret', 'Open Basic Information → App Credentials → copy the Signing Secret. We use it to verify every request really came from Slack.'], ['Paste at /slack', 'In '.brand_name().', open /slack and paste the Bot Token + Signing Secret, then Connect.'], ]; @endphp @foreach ($steps as $i => $s)
  1. {{ $i + 1 }}
    {{ __($s[0]) }}

    {!! __($s[1]) !!}

  2. @endforeach
{{-- Usage --}}
{{ __('usage') }}

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

{{ __('Workspaces connected') }}
{{ number_format($integrationsCount) }}
{{ __('Active') }}
{{ number_format($activeCount) }}
{{ __('Commands handled') }}
{{ number_format($logsCount) }}