@extends('layouts.app') @section('title', 'Riwayat Notifikasi WhatsApp') @section('content')
@include('admin.partials.sidebar')
@include('admin.partials.topbar')

Riwayat Notifikasi

Daftar semua notifikasi WhatsApp yang telah dikirim

Kembali

Total Pesan

{{ number_format($stats['total']) }}

Terkirim

{{ number_format($stats['sent']) }}

Gagal

{{ number_format($stats['failed']) }}

Hari Ini

{{ number_format($stats['today']) }}

@forelse($logs as $log) @empty @endforelse
Waktu Penerima Tipe Invoice Status Pesan Aksi
{{ $log->created_at->format('d/m/Y') }}
{{ $log->created_at->format('H:i:s') }}
{{ $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', 'custom' => 'bg-gray-100 text-gray-800', ]; $typeLabels = [ 'invoice' => 'Invoice', 'reminder' => 'Reminder', 'suspension' => 'Suspension', 'voucher' => 'Voucher', 'custom' => 'Custom', ]; @endphp {{ $typeLabels[$log->type] ?? ucfirst($log->type) }} @if($log->invoice) {{ $log->invoice->invoice_number }} @else - @endif @if($log->status == 'sent') Terkirim @elseif($log->status == 'failed') Gagal @else Pending @endif @if($log->error_message) @endif @if($log->status == 'failed') @endif

Belum ada riwayat notifikasi

@if($logs->hasPages())
{{ $logs->links() }}
@endif
@push('scripts') @endpush @endsection