WIP: whatsapp api wire using hello world template
This commit is contained in:
@@ -549,7 +549,7 @@ class PembiayaanOnlineController extends Controller
|
|||||||
$n = $res->json()['dikemaskini'] ?? count($ids);
|
$n = $res->json()['dikemaskini'] ?? count($ids);
|
||||||
return redirect()
|
return redirect()
|
||||||
->route('pembiayaan.online.pc.paid')
|
->route('pembiayaan.online.pc.paid')
|
||||||
->with('message', $n . ' rekod ditanda selesai semak/blast.');
|
->with('message', $n . ' rekod ditanda selesai. WhatsApp notis dihantar (nombor ujian jika bukan production).');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -75,7 +75,7 @@
|
|||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<p class="small text-muted">
|
<p class="small text-muted">
|
||||||
Semak jumlah & bukti bayaran sepadan dengan pelanggan. Setelah semak, tanda selesai.
|
Semak jumlah & bukti bayaran sepadan dengan pelanggan. Setelah semak, tanda selesai.
|
||||||
(WhatsApp/SMS blast boleh disambung kemudian — butang ini menanda rekod sebagai selesai semak.)
|
WhatsApp notis (template Cloud API) akan dihantar selepas tally. Di persekitaran ujian ia pergi ke nombor admin, bukan pelanggan.
|
||||||
</p>
|
</p>
|
||||||
<form id="formMarkBlast" method="post" action="{{ route('pembiayaan.online.pc.blast') }}">
|
<form id="formMarkBlast" method="post" action="{{ route('pembiayaan.online.pc.blast') }}">
|
||||||
@csrf
|
@csrf
|
||||||
@@ -180,7 +180,7 @@
|
|||||||
|
|
||||||
$('#btnMarkBlast').on('click', function () {
|
$('#btnMarkBlast').on('click', function () {
|
||||||
if ($('.row-check:checked').length === 0) return;
|
if ($('.row-check:checked').length === 0) return;
|
||||||
if (!confirm('Sahkan tally untuk rekod dipilih? Rekod akan ditanda selesai semak/blast.')) return;
|
if (!confirm('Sahkan tally untuk rekod dipilih? Rekod akan ditanda selesai dan WhatsApp notis akan dihantar.')) return;
|
||||||
$('#formMarkBlast').submit();
|
$('#formMarkBlast').submit();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user