From 1b496fe85087d73db262d138b921ef828d1a73da Mon Sep 17 00:00:00 2001 From: Afrina Alimi <82226421+Afrina16@users.noreply.github.com> Date: Sun, 14 Jan 2024 12:39:09 +0800 Subject: [PATCH] add jenis bayaran at history ansuran --- resources/views/customers/v2/info.blade.php | 21 ++++++++++++++------ resources/views/modal/historytebus.blade.php | 5 +++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/resources/views/customers/v2/info.blade.php b/resources/views/customers/v2/info.blade.php index e58b30a..f1c51dc 100644 --- a/resources/views/customers/v2/info.blade.php +++ b/resources/views/customers/v2/info.blade.php @@ -1402,14 +1402,23 @@ $.each(data,function(index,bayaran){ var urlroute = '{{ route("resit.ansuran", ":id") }}'; + var bayaranteller; + + if(bayaran['teller'] != 'Online') + bayaranteller = 'KT'; + + if(bayaran['teller'] == 'Online') + bayaranteller = 'ON'; + urlroute = urlroute.replace(':id', bayaran['id']); historybayarandatatable.row.add([ - counter, - bayaran['created_at'], - "RM " + bayaran['duit_masuk'], - 'Cetak' - ]).draw(); - counter = counter + 1; + counter, + bayaran['created_at'], + "RM " + bayaran['duit_masuk'], + bayaranteller, + 'Cetak' + ]).draw(); + counter = counter + 1; }); } diff --git a/resources/views/modal/historytebus.blade.php b/resources/views/modal/historytebus.blade.php index d5a27cf..affe7fc 100644 --- a/resources/views/modal/historytebus.blade.php +++ b/resources/views/modal/historytebus.blade.php @@ -25,13 +25,13 @@