@extends('layouts.admin') @section('title', 'Konfigurasi Sistem') @section('page_title', 'Konfigurasi Sistem') @section('admin_content')

Konfigurasi Sistem

Sesuaikan informasi kontak, nama brand, dan pengaturan payment gateway QRIS.

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Pengaturan Global

Informasi & Payment Gateway

@csrf

Gateway Pembayaran Aktif

Pilih pintu masuk transaksi yang aktif saat klien melakukan checkout pembayaran.

@php $activeGw = \App\Models\SystemSetting::get('active_payment_gateway', 'pghub'); @endphp

1. Kredensial Payment Gateway Hub (PG-Hub)

Terhubung ke server backend terpusat https://gateway.exploore.id
Single Login
URL Webhook Callback PG-Hub:
{{ url('/api/pghub/callback') }}
*PG-Hub akan mengirimkan notifikasi ke URL di atas disertai header X-PGHub-Signature saat klien berhasil bayar.

2. Kredensial Midtrans Langsung (Direct Snap)

Dipergunakan jika Anda memilih opsi 'Midtrans Langsung'
URL Webhook Notifikasi:
{{ url('/api/midtrans/notification') }}
*Salin URL di atas ke menu Settings > Configuration > Payment Notification URL di Dashboard Midtrans Anda.

Asisten Virtual AI (Google Gemini)

Chatbot bantuan otomatis 24/7 yang membaca data database (paket, template, kuota foto, & data undangan pengantin).

Dapatkan API Key gratis di Google AI Studio. Jika kosong, sistem otomatis memakai fallback cerdas FAQ & WhatsApp CS.
@php $currentModel = \App\Models\SystemSetting::get('gemini_model', 'gemini-1.5-flash'); @endphp
Uji Coba Kunci API: Klik tombol untuk memverifikasi respon Google
Pengiriman Email

Server SMTP & Verifikasi Akun

@csrf
@php $currentMailer = \App\Models\SystemSetting::get('mail_mailer', env('MAIL_MAILER', 'log')); @endphp
@php $currentEnc = \App\Models\SystemSetting::get('mail_encryption', env('MAIL_SCHEME', 'tls')); @endphp
Untuk Gmail, gunakan 'App Password' 16 digit dari akun Google Anda.

Template Pesan Email

Placeholder: {nama_klien}, {email_klien}, {link_reset}, {tahun}
Placeholder: {nama_klien}, {email_klien}, {link_verifikasi}, {tahun}
Diagnostik

Tes Koneksi Pengiriman Email

Kirimkan email uji coba ke alamat Anda untuk memverifikasi apakah akun SMTP dan konfigurasi port sudah berjalan dengan baik.

@csrf
@php $sv = fn($k, $d = '') => \App\Models\SystemSetting::get($k, $d); $inp = 'width:100%; padding:8px 12px; border:1px solid var(--ax-border); border-radius:var(--ax-radius-md); font-size:var(--ax-text-xs); background:var(--ax-surface);'; @endphp
Paket VIP & Invoice

Tombol Call Us & Rekening Invoice Manual

@csrf
@endsection @push('scripts') @endpush