@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 (sole SMS provider — spans the full row) --}}
NF Nettyfish
{{ $activeProvider === 'nettyfish' ? '● 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
{{-- info note --}}
All SMS (OTP, order updates, notifications) are sent via Nettyfish using the DLT-approved templates configured on each notification.
{{-- /sms-wrapper --}}
{{-- ================================================================ --}} {{-- WHATSAPP TAB --}} {{-- ================================================================ --}}
{{-- ── WappCloud config (left) ─────────────────────── --}}
@csrf @php $waProvider = ($settings['whatsapp_provider'] ?? 'wappcloud') === 'wacto' ? 'wacto' : 'wappcloud'; @endphp {{-- Enable switch + shared fields --}}
WA WhatsApp Business
Public domain Meta downloads header images/documents from. Localhost media links are rewritten to this domain.
Language the templates were approved in (en / en_US).
{{-- ── Provider cards — select like the SMS screen ── --}}
{{-- WappCloud --}}
WC WappCloud
{{ $waProvider === 'wappcloud' ? '● Active — WhatsApp messages send via WappCloud' : '○ Inactive — select to send via WappCloud' }}
WappCloud → Settings → API Access → Copy Token.
WappCloud → Settings → API Access → Re Generate Api Key.
{{-- Wacto --}}
WT Wacto
{{ $waProvider === 'wacto' ? '● Active — WhatsApp messages send via Wacto' : '○ Inactive — select to send via Wacto' }}
Business WhatsApp number with country code, digits only.
Before switching: every template (order, coupon, subscription) must be approved under Wacto's WhatsApp Business Account — template names are matched there, not here.
{{-- /provider-grid --}} {{-- Template setup guide --}}
How to set up a WhatsApp template in a notification
  1. Create and get the template approved in your WappCloud / Meta Business dashboard.
  2. In Admin → Notifications → Edit Template, set the WhatsApp Template Name field to the exact approved template name.
  3. Set the WhatsApp Message field to the body text with @{{variable_name}} placeholders in the same order as the template variables.
  4. Add whatsapp to the template's Select Channels.
  5. Variables are passed to the template as positional body parameters ({{1}}, {{2}}, …) in the order they appear in the notification parameters.
{{-- /sms-wrapper --}}
{{-- /tab-content --}} @endsection @section('styles') @endsection @section('scripts') @endsection