@extends('layouts.app') @section('title', 'Notifikasi WhatsApp') @section('breadcrumb')
Kelola dan kirim notifikasi WhatsApp ke seluruh warga desa
Kelola dan pantau status pengiriman pesan
|
Waktu | Penerima | Detail Pesan | Jenis | Status | Aksi |
---|---|---|---|---|---|---|
|
{{ $notification->created_at->format('d/m/Y') }}
{{ $notification->created_at->format('H:i') }}
{{ $notification->created_at->diffForHumans() }}
|
{{ $notification->phone_number ?: $notification->no_wa_legacy }}
@if($notification->penduduk)
{{ $notification->penduduk->nama }}
@if($notification->penduduk->dusun) {{ $notification->penduduk->dusun }} @endif @else Nomor External @endif |
@php $type = $notification->message_type ?: $notification->jenis_legacy; $typeConfig = [ 'surat_selesai' => ['color' => 'success', 'icon' => 'fas fa-file-alt', 'label' => 'Surat Selesai'], 'bantuan_diterima' => ['color' => 'primary', 'icon' => 'fas fa-hand-holding-heart', 'label' => 'Bantuan Diterima'], 'pengaduan_ditanggapi' => ['color' => 'warning', 'icon' => 'fas fa-reply', 'label' => 'Pengaduan Ditanggapi'], 'broadcast_berita' => ['color' => 'info', 'icon' => 'fas fa-bullhorn', 'label' => 'Broadcast Berita'], 'manual' => ['color' => 'secondary', 'icon' => 'fas fa-edit', 'label' => 'Manual'] ]; $config = $typeConfig[$type] ?? ['color' => 'dark', 'icon' => 'fas fa-envelope', 'label' => 'General']; @endphp {{ $config['label'] }} |
@switch($notification->status)
@case('Terkirim')
@case('sent')
Terkirim
@if($notification->sent_at)
{{ $notification->sent_at->format('H:i') }}
@endif
Menunggu
Dalam antrian
Gagal
Coba lagi
|
@if(!$notification->is_read)
@endif
@if(in_array($notification->status, ['Gagal', 'failed']))
@endif
|
Notifikasi WhatsApp akan muncul di sini setelah ada aktivitas dari warga.
Anda juga dapat mengirim notifikasi manual menggunakan fitur broadcast.