{{-- Custom / bring-your-own SMS gateway form. Describes any provider's HTTP API and posts to /connect/wa-store/sms-custom. Stored as a provider='sms', sms_provider='custom' row → sends via CustomHttpTransport in campaigns + broadcasts. Written to be followed step-by-step by a non-technical operator. --}} @php $__smsBase = preg_replace('#^http://#i', 'https://', url('/')); @endphp {{-- What this is + where every value comes from. --}}
{{ __('What you need') }}
{{ __('Open your SMS provider’s API documentation (look for “Send SMS API” or “HTTP API”). You only need 4 things from it:') }}
  1. {{ __('The send URL (the web address you POST/GET a message to).') }}
  2. {{ __('Whether it’s GET or POST, and the body shape (JSON, form, or query string).') }}
  3. {{ __('How your API key is sent (in a header, or inside the body/URL).') }}
  4. {{ __('Your API key itself.') }}
{{ __('Worked example') }}
{{ __('If the docs say: POST https://api.smsgw.com/send with JSON body {"phone":"...","message":"...","apikey":"..."}, you would enter:') }}
@csrf @if (session()->has('sms_test_msg'))
{{ session('sms_test_msg') }}
@endif {{-- STEP 1 --}}
1

{{ __('Your sending number') }}

{{-- STEP 2 --}}
2

{{ __('How to send (from the provider’s docs)') }}

{{-- Build method: simple Template, or the detailed Parameter mapping ("Create your own server"). --}} {{-- Shared: method + URL --}}
{{-- ========== TEMPLATE MODE ========== --}}
{{ __('Placeholders:') }} {to} {to_e164} · {text} {text_url} · {from}/{sender_id} · {api_key}/{api_secret} · {segments}.
{{-- ========== PARAMETER-MAPPING MODE ========== --}}
{{-- STEP 3 --}}
3

{{ __('Your API key') }}

{{-- STEP 4 (optional) --}}
{{ __('Step 4 (optional) — tell us how to read the response') }}

{{ __('By default any “200 OK” reply counts as sent. Fill these only if you want to be stricter or to save the provider’s message id.') }}

{{-- STEP 5 (optional) — receive --}}
{{ __('Step 5 (optional) — receive replies & delivery reports') }}

{{ __('After you Save, you’ll get an Inbound URL and a DLR URL to paste into your provider’s panel. Here you tell us which field in their webhook carries each value.') }}

{{ __('Incoming reply — field names in the provider’s webhook') }}
{{ __('Delivery report — field names + which values mean delivered / failed') }}
{{-- STEP 6 (optional) — cost --}}
{{ __('Cost reporting (optional)') }}
@error('url')
{{ $message }}
@enderror {{-- STEP 6 — test + save --}}