diff --git a/resources/views/auth/pertama-kali/firsttime2.blade.php b/resources/views/auth/pertama-kali/firsttime2.blade.php
index 8c3528f..be53220 100644
--- a/resources/views/auth/pertama-kali/firsttime2.blade.php
+++ b/resources/views/auth/pertama-kali/firsttime2.blade.php
@@ -115,7 +115,7 @@
--}}
-
+
@@ -374,111 +374,107 @@
}else{
- if(isNaN(icno))
- {
- $.notify({
- icon: 'fas fa-exclamation-triangle fa-2x',
- newest_on_top: true,
- message: "Masukkan Nombor dalam petak disediakan!"
- }, {
- type: 'danger',
- allow_dismiss: false,
- placement: {
- align: 'center',
- from: 'bottom'
- },
- animate: {
- enter: 'animate__animated animate__bounce',
- exit: 'animate__animated animate__bounceOutDown'
+ var csrf_token = $('meta[name="csrf-token"]').attr('content');
+
+ $.ajax({
+ url: '{{ route("requestic") }}',
+ method: 'get',
+ data:{
+ "_token": "{{ csrf_token() }}",
+ "icno" : icno
+ },
+ success: function(data) {
+
+ if(data.notexpired){
+ $.notify({
+ icon: 'fas fa-exclamation-triangle fa-2x',
+ newest_on_top: true,
+ message: "anda telah meminta tac kurang daripada 5 minit!"
+ }, {
+ type: 'warning',
+ allow_dismiss: false,
+ placement: {
+ align: 'center',
+ from: 'bottom'
+ },
+ animate: {
+ enter: 'animate__animated animate__bounce',
+ exit: 'animate__animated animate__bounceOutDown'
+ }
+ });
+
+ return;
}
- });
- }else{
- var csrf_token = $('meta[name="csrf-token"]').attr('content');
-
- $.ajax({
- url: '{{ route("requestic") }}',
- method: 'get',
- data:{
- "_token": "{{ csrf_token() }}",
- "icno" : icno
- },
- success: function(data) {
- if(data.notexpired){
- $.notify({
- icon: 'fas fa-exclamation-triangle fa-2x',
- newest_on_top: true,
- message: "anda telah meminta tac kurang daripada 5 minit!"
- }, {
- type: 'warning',
- allow_dismiss: false,
- placement: {
- align: 'center',
- from: 'bottom'
- },
- animate: {
- enter: 'animate__animated animate__bounce',
- exit: 'animate__animated animate__bounceOutDown'
- }
- });
-
- return;
- }
-
- if(data.message){
-
- $.notify({
- icon: 'fas fa-exclamation-triangle fa-2x',
- newest_on_top: true,
- message: "anda telah menjadi ahli dalam ini!"
- }, {
- type: 'warning',
- allow_dismiss: false,
- placement: {
- align: 'center',
- from: 'bottom'
- },
- animate: {
- enter: 'animate__animated animate__bounce',
- exit: 'animate__animated animate__bounceOutDown'
- }
- });
-
- return;
- }
+ if(data.message){
- if(data['status'] == 1)
- {
- $("#tac").prop('disabled', false);
- $("#spanhantarnombor").removeClass('d-none');
- $("#divsahkan").removeClass('d-none');
- $('#backphone').text(data['notelefon']);
+ $.notify({
+ icon: 'fas fa-exclamation-triangle fa-2x',
+ newest_on_top: true,
+ message: "anda telah menjadi ahli dalam ini!"
+ }, {
+ type: 'warning',
+ allow_dismiss: false,
+ placement: {
+ align: 'center',
+ from: 'bottom'
+ },
+ animate: {
+ enter: 'animate__animated animate__bounce',
+ exit: 'animate__animated animate__bounceOutDown'
+ }
+ });
- $.notify({
- icon: 'fas fa-2x fa-exclamation-triangle',
- newest_on_top: true,
- message: "Permohonan TAC telah dihantar melalui SMS!"
- }, {
- type: 'success',
- allow_dismiss: false,
- placement: {
- align: 'center',
- from: 'bottom'
- },
- animate: {
- enter: 'animate__animated animate__bounce',
-
- exit: 'animate__animated animate__bounceOutDown'
- }
- });
-
- }else{
- // console.log(data);
- }
+ return;
}
- });
+
+ if(data['status'] == 1)
+ {
+ $("#tac").prop('disabled', false);
+ $("#spanhantarnombor").removeClass('d-none');
+ $("#divsahkan").removeClass('d-none');
+ $('#backphone').text(data['notelefon']);
+
+ $.notify({
+ icon: 'fas fa-2x fa-exclamation-triangle',
+ newest_on_top: true,
+ message: "Permohonan TAC telah dihantar melalui SMS!"
+ }, {
+ type: 'success',
+ allow_dismiss: false,
+ placement: {
+ align: 'center',
+ from: 'bottom'
+ },
+ animate: {
+ enter: 'animate__animated animate__bounce',
+
+ exit: 'animate__animated animate__bounceOutDown'
+ }
+ });
+
+ }else{
+ $.notify({
+ icon: 'fas fa-2x fa-exclamation-triangle',
+ newest_on_top: true,
+ message: "No Kad Pengenalan / Passport tiada dalam simpanan!"
+ }, {
+ type: 'danger',
+ allow_dismiss: false,
+ placement: {
+ align: 'center',
+ from: 'bottom'
+ },
+ animate: {
+ enter: 'animate__animated animate__bounce',
+
+ exit: 'animate__animated animate__bounceOutDown'
+ }
+ });
+ }
+ }
+ });
- }
}
diff --git a/resources/views/includes/bayaran/pembayaransag.blade copy.php b/resources/views/includes/bayaran/pembayaransag.blade copy.php
index b69f6f5..f17b391 100644
--- a/resources/views/includes/bayaran/pembayaransag.blade copy.php
+++ b/resources/views/includes/bayaran/pembayaransag.blade copy.php
@@ -410,7 +410,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);
@@ -441,7 +441,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);
diff --git a/resources/views/includes/bayaran/pembayaransag.blade.php b/resources/views/includes/bayaran/pembayaransag.blade.php
index c3f94dc..3d00586 100644
--- a/resources/views/includes/bayaran/pembayaransag.blade.php
+++ b/resources/views/includes/bayaran/pembayaransag.blade.php
@@ -292,7 +292,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);
@@ -323,7 +323,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);
diff --git a/resources/views/pembayaran/checkout.blade.php b/resources/views/pembayaran/checkout.blade.php
index 5d79188..5e38b18 100644
--- a/resources/views/pembayaran/checkout.blade.php
+++ b/resources/views/pembayaran/checkout.blade.php
@@ -340,7 +340,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);
@@ -371,7 +371,7 @@
$("#bayarsbmt").prop('disabled', false);
Swal.fire(
'Amaran!',
- 'Bayaran tidak boleh melebihi 10% nilai marhun!',
+ 'Baki Pembiayaan tidak boleh kurang 10% daripada Nilai Marhun',
'error'
)
$(this).val(upah);