@extends('layouts.app') @section('title', 'WhatsApp Gateway') @section('content')
Kelola notifikasi WhatsApp
{{ number_format($stats['total'] ?? 0) }}
Total
{{ number_format($stats['sent'] ?? 0) }}
Terkirim
{{ number_format($stats['failed'] ?? 0) }}
Gagal
{{ number_format($stats['today'] ?? 0) }}
Hari Ini
| Waktu | Penerima | Tipe | Status |
|---|---|---|---|
| {{ $log->created_at->format('d/m H:i') }} |
{{ $log->customer->name ?? '-' }}
{{ $log->phone }}
|
@php $typeColors = [ 'invoice' => 'bg-blue-100 text-blue-800', 'reminder' => 'bg-yellow-100 text-yellow-800', 'suspension' => 'bg-red-100 text-red-800', 'voucher' => 'bg-purple-100 text-purple-800', ]; @endphp {{ ucfirst($log->type) }} | @if($log->status == 'sent') Terkirim @else Gagal @endif |
Belum ada riwayat notifikasi
Halo *{nama}*,
Tagihan internet Anda telah terbit:
📋 Invoice: {invoice}
📦 Paket: {paket}
💰 Total: Rp {amount}
📅 Jatuh Tempo: {due_date}
Terima kasih,
*{app_name}*
Halo *{nama}*,
✅ Pembayaran diterima!
📋 Invoice: {invoice}
💰 Jumlah: Rp {amount}
📅 Tanggal: {paid_date}
Terima kasih,
*{app_name}*
⚠️ *Pengingat Pembayaran*
Halo *{nama}*,
Tagihan belum dibayar:
📋 Invoice: {invoice}
💰 Total: Rp {amount}
📅 Jatuh Tempo: {due_date}
*{app_name}*
| API URL | {{ config('services.whatsapp.api_url') ?: 'Not configured' }} |
| Sender Number | {{ config('services.whatsapp.sender') ?: 'Not configured' }} |
| Status | @if($connected) Connected @else Disconnected @endif |
Konfigurasi WhatsApp Gateway dapat diubah di file .env