From 1fa3b31662df8c5f7a8f29937fa6593918302595 Mon Sep 17 00:00:00 2001 From: afiq Date: Wed, 22 Dec 2021 04:33:03 +0800 Subject: [PATCH] wtd --- resources/views/customers/info.blade.php | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/resources/views/customers/info.blade.php b/resources/views/customers/info.blade.php index 7543186..96e350d 100644 --- a/resources/views/customers/info.blade.php +++ b/resources/views/customers/info.blade.php @@ -826,7 +826,24 @@ if (tarikhtuntut == null) { - window.location.href = urlroute; + $.ajax({ + method: 'GET', + url : api_url + '/api/check/wtd', + data:{ + 'norujukan' : norujukan + }, + success:function(data){ + if(data == 'yes'){ + Swal.fire({ + icon: 'error', + title: 'Amaran', + text: 'Lelongan dalam process WTD' + }); + }else{ + window.location.href = urlroute; + } + } + }); }else{ Swal.fire({ icon: 'error',