@extends('backend.template.layouts.template-base') @section('title', 'Email & SMS Settings') @section('content') @php $activeProvider = $settings['sms_active_provider'] ?? ''; @endphp {{-- ── Page header ─────────────────────────────────────────────────── --}}

Email & SMS Setting

{{-- ── Alert ───────────────────────────────────────────────────────── --}} @if (session('message')) @endif {{-- ── Tabs ────────────────────────────────────────────────────────── --}}
{{-- ================================================================ --}} {{-- EMAIL TAB --}} {{-- ================================================================ --}}
@csrf

Mail SMTP Configuration

Test Email

@csrf
{{-- ================================================================ --}} {{-- SMS TAB --}} {{-- ================================================================ --}}
{{-- ── Provider cards + test bypass (left/main area) ── --}}
@csrf {{-- ── Provider cards grid ───────────────────── --}}
{{-- Nettyfish --}}
NF Nettyfish
{{ $activeProvider === 'nettyfish' ? '● Active — primary provider' : '○ Inactive — used as fallback if credentials are set' }}
{{-- MSG91 --}}
M91 MSG91
{{ $activeProvider === 'msg91' ? '● Active — primary provider' : '○ Inactive — used as fallback if credentials are set' }}
{{-- /provider-grid --}} {{-- ── Test bypass credentials ───────────────── --}}
Test Bypass — SMS is skipped for this mobile; the Test OTP is accepted without real delivery
{{-- fallback info note --}}
Providers with credentials saved are used as automatic fallback — if the active provider fails, the next configured provider is tried in order: Nettyfish → Fast2SMS → MSG91 → TextLocal.
{{-- ── Test SMS panel (right) ──────────────────────── --}}
@csrf

Test SMS

{{-- /sms-wrapper --}}
{{-- /tab-content --}} @endsection @section('styles') @endsection @section('scripts') @endsection