@extends('layouts.admin') @section('title', $p->exists ? 'Edit provider – ' . $p->name : 'Add provider') @section('content') @php $s = $p->settings ?? []; $j = fn($v) => $v ? json_encode($v, JSON_PRETTY_PRINT|JSON_UNESCAPED_SLASHES) : ''; @endphp
@csrf @if($p->exists) @method('PUT') @endif
@foreach(config('voiceorder.voices') as $g)@foreach($g as $k=>$l)
Verify against your live provider account.
@foreach(['bn'=>'Bangla','en'=>'English'] as $k=>$l)
supported_languages ?? [])))>
@endforeach
supports_dtmf))>

Adapter settings (data only – no code is executed)

@foreach([['response_mapping','Dispatch response mapping (JSON paths: provider_call_id_path, campaign_id_path, status_path, success_path)',$j($p->response_mapping)],['webhook_map','Webhook map (JSON paths: event_id, call_ref, provider_call_id, campaign_id, status, digit, timestamp)',$j($s['webhook_map'] ?? null)],['status_map','Status map (provider status → VoiceOrder status)',$j($s['status_map'] ?? null)],['digit_map','Digit map (provider value → "1"/"2")',$j($s['digit_map'] ?? null)],['keypad_options','keypad_options payload (TZSMM: only as confirmed with provider)',$j($s['keypad_options'] ?? null)],['request_template','Request template (custom adapter; use double-brace placeholders for: to, text, voice, language, reference, caller_id)',$j($s['request_template'] ?? null)],['custom_headers','Custom headers (JSON, stored encrypted)',$p->custom_headers ? '(stored – re-enter to change)' : '']] as $f)
@endforeach
@if($p->exists)

Status

@if($p->is_active)ACTIVE DEFAULT@else@endif
Webhook URL for this provider:
@csrf
@if(!$p->is_active)@else
@csrf
@endif
@csrf @method('DELETE')
Logs

Send test call (real call)

@csrf

Activation checklist

An accepted HTTP request does not prove compatibility. Record each check only after you observed it for real.

@php $v = $p->verification ?? []; @endphp @foreach($checks as $k => $label)
{{ $label }}@if(isset($v[$k]))@elsenot checked@endif
@if(isset($v[$k]))
{{ \Illuminate\Support\Str::limit($v[$k]['note'], 90) }} {{ $v[$k]['manual'] ? '(manual)' : '(automatic)' }}
@endif @if(in_array($k, ['bangla','english','dtmf','webhook','reconciliation']))
@csrf
@endif
@endforeach
@endif
@endsection