{{-- Twilio connect form — shared between the inline single-engine empty state (_twilio_section) and the multi-engine "Add device → Twilio" modal (index). Posts to /connect/wa-store/twilio. Expects $twilioAdminDefaults. --}} @php $defaults = is_array($twilioAdminDefaults ?? null) ? $twilioAdminDefaults : ['account_sid' => '', 'whatsapp_number' => '']; $hasAdminDefaults = $defaults['account_sid'] !== '' && $defaults['whatsapp_number'] !== ''; @endphp

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

@if ($hasAdminDefaults)
{{ __('Your platform admin has shared default Twilio credentials. Leave the fields below blank to use them, or paste workspace-specific creds to override.') }}
@endif
@csrf {{-- This form lives on /devices — return here after a successful connect instead of the store-onboarding wizard's default /store. --}}
@error('account_sid')
{{ $message }}
@enderror @error('from_number')
{{ $message }}
@enderror