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 @@