@extends('admin.layouts.app') @section('title', 'Email & SMTP Settings - Dham Seva Trust') @section('content')
{{-- ═══ TOP HEADER & STATUS BAR ═══ --}}
Outbound Communications

Email & SMTP Configuration

Configure SMTP credentials for transactional devotee emails, volunteer verification passes, password resets, donation receipts, and automated system alerts.

{{-- Telemetry Badges --}}
OpenSSL: {{ $telemetry['openssl_installed'] ? 'Enabled' : 'Disabled' }}
{{-- Flash Notifications --}} @if(session('success'))
{{ session('success') }}
@endif {{-- ═══ CARD 1: 1-CLICK PROVIDER PRESETS ═══ --}}

⚡ Quick Provider Presets

Click any preset to auto-fill recommended host, port, and encryption standards.

1-Click Auto-Fill
{{-- Gmail Preset --}} {{-- Zoho Preset --}} {{-- Hostinger / cPanel --}} {{-- Brevo / Sendinblue --}} {{-- Amazon SES --}} {{-- Development Log Mode --}}
{{-- ═══ 2-COLUMN MAIN CONTENT (SETTINGS FORM + TEST SENDER & GUIDE) ═══ --}}
{{-- ═══ LEFT COLUMN: SMTP SERVER CREDENTIALS (8 COLS) ═══ --}}
⚙️

SMTP Server Credentials

These settings override environment defaults in real-time.

{{-- Row 1: Mail Driver --}}
{{-- Row 2: Host & Port --}}
{{-- Row 3: Encryption Protocol --}}
{{-- Row 4: Username & Password --}}
{{-- Row 5: Sender Information (From Address & Name) --}}
Global Sender Identity
{{-- Submit Button --}}
{{-- ═══ RIGHT COLUMN: LIVE TEST CONSOLE & GMAIL HELPER (5 COLS) ═══ --}}
{{-- 🧪 Live Test Email Console --}}
🧪

Send Live Test Email

Real-Time Check

Verify that your SMTP credentials, firewall ports, and SSL handshakes are communicating cleanly with the email server.

{{-- Test Result Feedback Banner --}}

{{-- Troubleshooting Diagnostic Hint --}}
{{-- Last Test History Stamp --}} @if(!empty($settings['last_test_at']))
Last Test: {{ $settings['last_test_at'] }} {{ $settings['last_test_status'] ?? 'None' }}
@endif
{{-- 💡 Gmail 16-Digit App Password Guide --}}
💡 Gmail Setup in 60 Seconds

Google accounts require an App Password rather than your normal password:

  1. Go to your Google Account (myaccount.google.com).
  2. Click Security and ensure 2-Step Verification is ON.
  3. Search for "App Passwords" in the search bar.
  4. Type "Dham Seva" as App Name and click Create.
  5. Copy the 16-letter code and paste it into the SMTP Password field above!
{{-- Alpine.js State Management --}} @endsection