From 2ab2980b106e332cbce0842efc4bbe69276bd779 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Wed, 4 Dec 2024 01:15:27 +0800 Subject: [PATCH] fix font awesome add cart.js to make cart function --- public/js/miscellaneous/cart.js | 22 ++++ .../includes/bayaran/pembayaransag.blade.php | 102 +++++++++--------- resources/views/includes/main/head.blade.php | 5 +- 3 files changed, 77 insertions(+), 52 deletions(-) create mode 100644 public/js/miscellaneous/cart.js diff --git a/public/js/miscellaneous/cart.js b/public/js/miscellaneous/cart.js new file mode 100644 index 0000000..3d0a293 --- /dev/null +++ b/public/js/miscellaneous/cart.js @@ -0,0 +1,22 @@ +const test = () =>{ + let btn_payment = document.getElementById('bayarsbmt'); + + console.log(btn_payment,rad_payment); +} + +let checked_rad = () =>{ + let rad_payment = document.getElementById('radpembayaran'); + + if(rad_payment.checked){ + console.log('checked'); + btn_payment.disabled = false; + }else{ + console.log('not-checked'); + btn_payment.disabled = true; + } +} + +document.addEventListener('DOMContentLoaded', function () { + console.log('Document is fully loaded and parsed.'); + // Perform your actions here +}); \ No newline at end of file diff --git a/resources/views/includes/bayaran/pembayaransag.blade.php b/resources/views/includes/bayaran/pembayaransag.blade.php index 8da0f6b..33f452a 100644 --- a/resources/views/includes/bayaran/pembayaransag.blade.php +++ b/resources/views/includes/bayaran/pembayaransag.blade.php @@ -13,7 +13,7 @@ Bayar SAG | Portal Pelanggan -
+
@csrf @@ -28,16 +28,15 @@
-
-
+
+
-

Pembayaran PKB

- +

PKB

+
-
@@ -128,13 +127,13 @@
-
+
-

Pembayaran KOPKB

- +

KOPKB

+
@@ -204,66 +203,67 @@
-
-
- -
- -
- RM1.00 -
-
-
-
- -
- -
- RM{{ number_format($totalupahasal,2) }} -
-
*Jangan biarkan kotak bayaran ditinggalkan kosong, Sila masukkan amaun!
- - -
-
-
-
-
- - -
- Batal  - - @if($totalupahasal == 1.00 || $errorcount > 0) - - @else - - @endif -
-
-
-
+
+
-

Pembayaran KOPKB

- +

Pembayaran

+
+
+
+
+ +
+ +
+ RM1.00 +
+
+
+
+ +
+ +
+ RM{{ number_format($totalupahasal,2) }} +
+
+
+
+ +
+
+
+
+
+ + +
+ Batal  + + @if($totalupahasal == 1.00 || $errorcount > 0) + + @else + + @endif +
- + +{{-- --}} + + +