@extends('layouts.app') @section('title', 'Log Notifikasi WhatsApp') @section('page-title', 'Riwayat Log Notifikasi WhatsApp') @section('page-subtitle', 'Monitoring riwayat dan status pengiriman pesan notifikasi otomatis.') @section('content')
Log Notifikasi WhatsApp
Total: {{ $logs->total() }} Log
@forelse($logs as $log) @empty @endforelse
Waktu Karyawan Nomor Tujuan Tipe Notifikasi Isi Pesan Status Keterangan / Response
{{ $log->created_at->format('d/m/Y') }}
{{ $log->created_at->format('H:i:s') }}
{{ $log->employee?->name ?? 'Pengujian' }} {{ $log->recipient }} {{ ucfirst($log->type) }} {{ $log->message }} @if($log->status === 'sent') Terkirim @elseif($log->status === 'pending') Pending @else Gagal @endif @if($log->error_message) {{ $log->error_message }} @else OK ({{ $log->sent_at ? $log->sent_at->format('H:i:s') : '-' }}) @endif
Belum ada riwayat pengiriman notifikasi.
@if($logs->hasPages())
{{ $logs->links('pagination::bootstrap-5') }}
@endif
@endsection