@extends('layouts.main') @section('content')

OTP Settings

@if (session()->has('success')) @endif @if (session()->has('error')) @endif @if ($errors->any()) @endif
Metode Pengiriman OTP
@csrf @method('PUT')
Pilih metode pengiriman OTP untuk login dan registrasi customer/teknisi. Minimal satu metode harus aktif.
otp_wa_enabled ? 'checked' : '' }}>
Kirim kode OTP melalui WhatsApp
otp_email_enabled ? 'checked' : '' }}>
Kirim kode OTP melalui Email
Email yang akan digunakan untuk mengirim OTP
Nama yang tampil di email
Test Pengiriman OTP
@csrf
Informasi
Penting!
  • Minimal satu metode OTP harus aktif
  • Pastikan konfigurasi email sudah benar di file .env
  • Test pengiriman OTP sebelum digunakan
Status Saat Ini:
  • WhatsApp: {{ $setting->otp_wa_enabled ? 'Aktif' : 'Nonaktif' }}
  • Email: {{ $setting->otp_email_enabled ? 'Aktif' : 'Nonaktif' }}
@if($setting->otp_email_enabled && $setting->email_from)
Email Configuration:

From: {{ $setting->email_from }}

Name: {{ $setting->email_from_name }}

@endif
Konfigurasi Email (.env)
Untuk Windows (Local - Mailtrap):
MAIL_MAILER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=your_username
MAIL_PASSWORD=your_password
MAIL_ENCRYPTION=tls
Untuk VPS Ubuntu (SMTP Real):
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=your@gmail.com
MAIL_PASSWORD=your_app_password
MAIL_ENCRYPTION=tls
Gunakan Mailtrap untuk testing di local, dan SMTP provider untuk production.
@endsection