From e9e996e54e7aa6736637049bfc9dd9ac4b1b3845 Mon Sep 17 00:00:00 2001 From: Ariyutta Date: Thu, 1 Oct 2026 15:24:39 +0700 Subject: [PATCH] Perbaikan WA Template --- app/Services/WhatsAppService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Services/WhatsAppService.php b/app/Services/WhatsAppService.php index 37a32294..7dee2494 100644 --- a/app/Services/WhatsAppService.php +++ b/app/Services/WhatsAppService.php @@ -30,7 +30,7 @@ class WhatsAppService 'channel' => 'whatsapp', 'message_type' => 'template', 'template' => [ - 'name' => 'pengajuan_absen', + 'name' => 'verifikasi_presensi_wa', 'language' => ['code' => 'id'], 'components' => [ [ @@ -40,8 +40,7 @@ class WhatsAppService ['type' => 'text', 'text' => $namaPemohon], ['type' => 'text', 'text' => $nipPemohon], ['type' => 'text', 'text' => (string) $jumlahHari], - ['type' => 'text', 'text' => $tanggalMulai], - ['type' => 'text', 'text' => $tanggalSelesai], + ['type' => 'text', 'text' => $tanggalMulai === $tanggalSelesai ? $tanggalMulai : "$tanggalMulai dan $tanggalSelesai"], ['type' => 'text', 'text' => $keterangan], ], ], -- 2.52.0