@php $cred = $existing && $existing->provider === 'twilio' ? $existing->creds() : []; $sharedSid = (string) \App\Models\SystemSetting::get('twilio_account_sid', ''); $sharedFrom = (string) \App\Models\SystemSetting::get('twilio_whatsapp_number', ''); @endphp

{{ __('Connect via') }} {{ __('Twilio') }}.

{{ __('Paste your Twilio Account SID + Auth Token, plus the WhatsApp From number Twilio assigned you. Use the Sandbox while testing, then switch to a paid number when you go live.') }}

@csrf @if ($sharedSid !== '')
{{ __('Your platform admin has shared default Twilio credentials. Leave the fields blank to use them, or paste workspace-specific creds to override.') }}
@endif
@if ($existing && $existing->provider === 'twilio' && $existing->isConnected())
{{ __("You're connected ✓") }}
{{ __('From:') }} {{ $existing->phone_number ?: '—' }} · Saved {{ optional($existing->connected_at)->diffForHumans() }}
Go to store
@endif