Compare commits

...

2 Commits

Author SHA1 Message Date
arbi e483635b3d Merge pull request 'Perbaikan WA Template' (#59) from development into main
Reviewed-on: #59
2026-10-01 15:25:06 +07:00
Ariyutta e9e996e54e Perbaikan WA Template 2026-10-01 15:24:39 +07:00
+2 -3
View File
@@ -30,7 +30,7 @@ class WhatsAppService
'channel' => 'whatsapp', 'channel' => 'whatsapp',
'message_type' => 'template', 'message_type' => 'template',
'template' => [ 'template' => [
'name' => 'pengajuan_absen', 'name' => 'verifikasi_presensi_wa',
'language' => ['code' => 'id'], 'language' => ['code' => 'id'],
'components' => [ 'components' => [
[ [
@@ -40,8 +40,7 @@ class WhatsAppService
['type' => 'text', 'text' => $namaPemohon], ['type' => 'text', 'text' => $namaPemohon],
['type' => 'text', 'text' => $nipPemohon], ['type' => 'text', 'text' => $nipPemohon],
['type' => 'text', 'text' => (string) $jumlahHari], ['type' => 'text', 'text' => (string) $jumlahHari],
['type' => 'text', 'text' => $tanggalMulai], ['type' => 'text', 'text' => $tanggalMulai === $tanggalSelesai ? $tanggalMulai : "$tanggalMulai dan $tanggalSelesai"],
['type' => 'text', 'text' => $tanggalSelesai],
['type' => 'text', 'text' => $keterangan], ['type' => 'text', 'text' => $keterangan],
], ],
], ],