{{ __('Use channel name (e.g. #general) or channel ID to send messages') }}
@endif
{{-- Instagram (shipped by the Instagram addon — only visible
when the addon is installed + active in /admin/addons). --}}
@if($configuringChannel === 'instagram')
{{ __('The Facebook Page your Instagram Business account is linked to.') }}
{{ __('Graph API: GET /me/accounts → instagram_business_account.id') }}
{{ __('Long-lived Page Access Token (~60-day expiry). Generate in Meta App → Graph API Explorer.') }}
{{ __('Used to verify Meta\'s X-Hub-Signature on inbound webhooks. Highly recommended for production — without it, anyone who guesses your webhook URL can inject fake DMs.') }}
{{ url('/addons/instagram/webhook') }}
{{ __('Paste this into Meta App → Webhooks → Instagram → Callback URL. The verify token is generated and shown after the first save.') }}
{{ __('Setup Guide') }}
{{ __('Your Instagram account must be a Business or Creator account linked to a Facebook Page (personal accounts cannot DM via API).') }}
{{ __('In Meta for Developers → My Apps → create or open your App.') }}
{{ __('Add the Instagram product → request these permissions: instagram_basic, instagram_manage_messages, pages_messaging.') }}
{{ __('Open Graph API Explorer → select your Page → generate a long-lived Page Access Token.') }}
{{ __('Run GET /me/accounts to find the Page ID + linked instagram_business_account.id. Paste them above with the token.') }}
{{ __('Save here. Then in Meta App → Webhooks → Instagram → subscribe to the messages field using the webhook URL + the verify token shown after save.') }}
{{ __('DM your IG account from another phone — it should appear in the inbox within a few seconds.') }}
@endif
{{-- Live Chat --}}
@if($configuringChannel === 'chat')
{{ __('Shown in the chat header. Leave blank to use workspace name.') }}
{{ __('AI Auto-Reply in chat') }}
{{ __('AI will reply to visitors when enabled') }}
{{-- Hide "Powered by …" credit on the widget. Defaults to
ON; turning it OFF removes the credit entirely for
this workspace's widget visitors. White-label plan
tier also forces it off regardless of this toggle. --}}
{{ __('Show "Powered by" credit') }}
{{ __('Turn off to hide the small credit line at the bottom of the chat widget.') }}
{{-- Custom "Powered by" text — admin types the exact
string they want shown at the widget footer.
Only visible when the toggle above is ON.
When this field is EMPTY the widget falls back to
BrandingHelper::name() (which itself filters out
the literal "MailTrixy" leak). When NON-empty,
this verbatim string is used. Length cap mirrors
the database column (60 chars). --}}
@if($chatShowBranding)
{{ __('Optional. Shown after "Powered by" in the widget footer. Leave blank to use your Site Name from General settings.') }}
@endif
{{-- Widget language: empty = follow workspace default
locale; otherwise the chosen language renders all UI
strings (Online now / Type a message / etc.) via the
translations editor. New translations added there
automatically appear in the widget on next page load. --}}
{{ __('All widget UI strings (buttons, placeholders, status) are rendered in this language. Add or translate strings in Admin → Translations.') }}
{{ __('Embed Code') }}
@if($chatWidgetPublicId)
{{-- Use the dynamic /widget.js route (NOT the static
/widget/v1.js path). The dynamic route ships
Cache-Control: max-age=300 + ETag, so
future deploys reach embedded visitors within
5 minutes automatically — no `?v=N` cache
busting on every customer's embed snippet
ever again. The static path still works as a
fallback for legacy embeds. --}}
<script src="{{ url('/widget.js') }}" data-workspace="{{ $chatWidgetPublicId }}" data-color="{{ $chatWidgetColor }}" data-position="{{ $chatPosition }}"></script>
{{ __('Paste this before') }} </body> {{ __('on any page where you want the widget.') }}
@else
{{ __('Save the channel first to generate the embed code.') }}
@endif
{{ __('Setup Guide') }}
{{ __('Customize the widget color, welcome message, and position above') }}
{{ __('Click Save & Connect') }}
{{ __('Copy the embed script code shown above') }}
{{ __('Paste it before') }} </body> {{ __('on your website pages') }}
{{ __('Visitors will see a chat bubble on your website') }}
{{ __('Messages appear in your inbox under Live Chat channel') }}
{{ __('Enable AI Auto-Reply to auto-respond to visitors') }}