@include('Partials.sidebar')
@include('Partials.header')

SMS Settings

Configure your SMS provider for OTP delivery

  1. SMS Settings
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Active provider banner --}}
Active Provider
@if($active) {{ ucfirst($active->provider) }} @else None configured @endif
{{-- Test SMS --}}
@csrf
{{-- Provider cards --}}
@foreach($providers as $setting) @php $p = $setting->provider; $fields = $providerFields[$p]; $cfg = $setting->config ?? []; $isActive = $setting->is_active; $providerIcons = ['twilio'=>'📞','msg91'=>'🇮🇳','fast2sms'=>'⚡','textlocal'=>'📱']; $providerDescs = [ 'twilio' => 'Global SMS. Works worldwide. Paid per message.', 'msg91' => 'India-focused. DLT registration required.', 'fast2sms' => 'India only. Simple OTP route. No DLT for OTP.', 'textlocal' => 'UK & India. Reliable bulk & OTP delivery.', ]; @endphp
{{ $providerIcons[$p] ?? '📨' }}
{{ ucfirst($p) }}
{{ $providerDescs[$p] ?? '' }}
@if($isActive) Active @else
@csrf
@endif
@csrf
@foreach($fields as $field)
@if($field['type'] === 'password')
@endif
@if($field['type'] === 'password' && !empty($cfg[$field['key']])) Saved. Leave blank to keep current value. @endif
@endforeach
@endforeach
@include('Partials.footer')