⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.229
Server IP:
13.127.59.50
Server:
Linux ip-172-31-46-210 5.15.0-1033-aws #37~20.04.1-Ubuntu SMP Fri Mar 17 11:39:30 UTC 2023 x86_64
Server Software:
Apache/2.4.41 (Ubuntu)
PHP Version:
7.4.3-4ubuntu2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
ecommerce_pg
/
resources
/
views
/
admin
/
View File Name :
transactionScriptsNew.blade.php
<!-- Approve --> <div id="approve" class="swal-overlay" tabindex="-1"> <div class="swal-modal" role="dialog" aria-modal="true"> <div class="swal-icon swal-icon--warning"> <span class="swal-icon--warning__body"> <span class="swal-icon--warning__dot"></span> </span> </div> <div class="swal-title" style=""> <span>Requested Amount Rs. </span> <span class="req_amount">1252</span> </div> <div class="swal-text" style="">Are you sure you want to approve this Withdrawal?</div> <div class="swal-footer"><div class="swal-button-container"> <button class="swal-button swal-button--cancel bg-secondary">Cancel</button> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" id="approveBtn" data-status="2" style="text-decoration:none" >Approve</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> </div> </div> </div> <!-- Add Comment --> <div id="addComment" class="swal-overlay" tabindex="-1"> <div class="swal-modal" role="dialog" aria-modal="true"> <!-- <div class="swal-icon swal-icon--warning"> <span class="swal-icon--successbody"> <span class="swal-icon--successdot"></span> </span> </div> --> <div class="swal-title" style=""> <span>Notes </span> <!-- <span class="req_amount">1252</span> --> </div> <div class="swal-text" style=""> <textarea class="form-control" name="transaction_comment" placeholder="Add Notes" rows="4" cols="80"></textarea> </div> <div class="swal-footer"> <div class="swal-button-container"> <button class="swal-button swal-button--cancel bg-secondary">Cancel</button> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success postCommentBtn" style="text-decoration:none" >Submit</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> </div> </div> </div> <!-- reject --> <div id="reject" class="swal-overlay" tabindex="-1"> <div class="swal-modal" role="dialog" aria-modal="true"> <div class="swal-icon swal-icon--warning"> <span class="swal-icon--warning__body"> <span class="swal-icon--warning__dot"></span> </span> </div> <div class="swal-title" style=""> <span>Requested Amount Rs. </span> <span class="req_amount"></span> </div> <div class="swal-text" style="">Are you sure you want to reject this Withdrawal?</div> <div class="swal-footer"><div class="swal-button-container"> <button class="swal-button swal-button--cancel bg-secondary">Cancel</button> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-danger" data-status="3" id="rejectBtn" style="text-decoration:none" >Reject</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> </div> </div> </div> <!-- Approve --> <div id="finshPayment" class="swal-overlay" tabindex="-1"> <div class="swal-modal" role="dialog" aria-modal="true"> <div class="swal-icon swal-icon--warning"> <span class="swal-icon--warning__body"> <span class="swal-icon--warning__dot"></span> </span> </div> <div class="swal-title" style=""> <span>Requested Amount Rs. </span> <span class="req_amount">1252</span> </div> <div class="swal-text" style="">Are you sure you want to Process this Withdrawal?</div> <div class="swal-text" style="margin-top:10px"> <input minlength="4" maxlength="4" style="display:inline" type="text" class="form-control" id="pin" name="pin" value="" placeholder="Enter PIN"> </div> <div class="swal-footer"> <div class="swal-button-container"> <button class="swal-button swal-button--cancel bg-secondary">Cancel</button> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" data-operator="cashfree" id="processBtn" data-status="2" style="text-decoration:none" >Process (Cashfre)</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" data-operator="agreePay" id="processBtnAgree" data-status="2" style="text-decoration:none" >Process (Agree Pay)</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" data-operator="fonePaisa" id="processBtnPaisa" data-status="2" style="text-decoration:none" >Process (Fone Paisa)</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" data-operator="razorpay" id="processBtnRzp" data-status="2" style="text-decoration:none" >Process (Razorpay)</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> <div class="swal-button-container"> <a class="swal-button swal-button--delete bg-success" data-operator="instaPay" id="processBtnInstaPay" data-status="2" style="text-decoration:none" >Process (Insta Pay)</a> <div class="swal-button__loader"> <div></div> <div></div> <div></div> </div> </div> </div> </div> </div> <script> $(document).ready(function() { // Approve button $('body').on('click','.approveBtn',function () { $('#approve').find('.req_amount').html($(this).attr('data-amount')) $('#approveBtn').attr('data-id',$(this).attr('data-id')); $('#approve').addClass('swal-overlay--show-modal') }) // Reject button $('body').on('click','.rejectBtn',function () { $('#reject').find('.req_amount').html($(this).attr('data-amount')) $('#rejectBtn').attr('data-id',$(this).attr('data-id')); $('#rejectBtn').attr('data-status',$(this).attr('data-status')); $('#reject').addClass('swal-overlay--show-modal') }) // approve or reject $('body').on('click','#approveBtn,#rejectBtn',function () { var that = $(this) setTimeout(function () { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">Processing</span></span>'); },2000) $.ajax({ type: "get", global: false, // //async: false, url: '/api/updateStatus?id='+$(this).attr('data-id')+'&status='+$(this).attr('data-status'), success: function(data) { crud.table.ajax.reload(); } }); }) // finshPayment button $('body').on('click','.finshPayment',function () { $('#finshPayment').find('.req_amount').html($(this).attr('data-amount')) $('#processBtn').attr('data-id',$(this).attr('data-id')); $('#processBtnRzp').attr('data-id',$(this).attr('data-id')); $('#processBtnAlready').attr('data-id',$(this).attr('data-id')); $('#processBtnAgree').attr('data-id',$(this).attr('data-id')); $('#processBtnPaisa').attr('data-id',$(this).attr('data-id')); $('#processBtnInstaPay').attr('data-id',$(this).attr('data-id')); $('#processBtnPaisa').attr('disabled','disabled').html('Process (Fone Paisa)') $('#processBtn').attr('disabled','disabled').html('Process (Cashfree)') $('#processBtnRzp').attr('disabled','disabled').html('Process (Razorpay)') $('#processBtnPaisa').attr('disabled','disabled').html('Process (Agreepay)') $('#processBtnAlready').attr('disabled','disabled').html('Already Processed') $('#finshPayment').addClass('swal-overlay--show-modal') $('#finshPayment').find('#pin').val('').focus() }) $('body').on('keyup','#pin',function () { if ($('#pin').val().length==4) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('#processBtnAlready').removeAttr('disabled').html('Already Processed)') } else { $('#processBtn').attr('disabled','disabled').html('Process (Cashfree)') $('#processBtnRzp').attr('disabled','disabled').html('Process (Razorpay)') $('#processBtnAgree').attr('disabled','disabled').html('Process (Agreepay)') $('#processBtnPaisa').attr('disabled','disabled').html('Process (FonePaisa)') $('#processBtnAlready').attr('disabled','disabled').html('Already Processed)') } }) // Process button $('body').on('click','#processBtnRzp,#processBtnAlready',function () { if ($(this).parents('#finshPayment').find('.req_amount').html()>1000) { alert('Maximun allowed is 1000') } else if ($('#pin').val().length==4) { $('#processBtn').attr('disabled','disabled').html('Please wait ...') $('#processBtnRzp').attr('disabled','disabled').html('Please wait ...') // loader(1) var that = $(this) setTimeout(function () { $.ajax({ type: "get", global: false, // //async: false, url: '/api/processPayment?id='+$(that).attr('data-id')+'&status='+$(that).attr('data-status')+'&pin='+$('#pin').val()+'&operator='+$(that).attr('data-operator'), success: function(data) { if (data.status==201) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') alert(data.message) $('#pin').val('').focus() } else { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') // loader(0) $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') crud.table.ajax.reload(); } } }); setTimeout(function () { $(that).removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_success').find('.finshPayment').hide() },2000) },100) } else { alert('Please enter PIN') } // $('.'+$(this).attr('data-id')+'_pending').remove() // $('.'+$(this).attr('data-id')+'_success').show() }) // Process button $('body').on('click','#processBtnAgree',function () { if ($(this).parents('#finshPayment').find('.req_amount').html()>1000) { alert('Maximun allowed is 1000') } else if ($('#pin').val().length==4) { $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">Processing</span></span>'); $('#processBtn').attr('disabled','disabled').html('Please wait ...') $('#processBtnRzp').attr('disabled','disabled').html('Please wait ...') $('#processBtnAgree').attr('disabled','disabled').html('Please wait ...') $('#processBtnPaisa').attr('disabled','disabled').html('Please wait ...') // loader(1) var that = $(this) setTimeout(function () { $.ajax({ type: "POST", global: false, data: { "headers": "{{ csrf_token() }}", }, // //async: false, url: '/api/processPaymentAggre?id='+$(that).attr('data-id')+'&status='+$(that).attr('data-status')+'&pin='+$('#pin').val()+'&operator='+$(that).attr('data-operator'), success: function(data) { if (data.status==201) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') alert(data.message) $('#pin').val('').focus() } else { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') // loader(0) $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">'+data.payoutstatus+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(7).html('<span><span class="d-inline-flex">'+data.utr+'</span></span>'); // $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(9).html('<span><span class="d-inline-flex">'+data.payout_message+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(20).html('<span><span class="d-inline-flex">'+data.customer_comments+'</span></span>'); // crud.table.ajax.reload(); } } }); setTimeout(function () { $(that).removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_success').find('.finshPayment').hide() },2000) },100) } else { alert('Please enter PIN') } // $('.'+$(this).attr('data-id')+'_pending').remove() // $('.'+$(this).attr('data-id')+'_success').show() }) // show Comment $('body').on('click','.addCommentBtn',function () { $('#addComment').find('textarea[name=transaction_comment]').val('').focus() $('.postCommentBtn').attr('data-id',$(this).attr('data-id')); $.ajax({ type: "get", url: '/api/getComment?id='+$(this).attr('data-id'), success: function(data) { $('#addComment').find('textarea[name=transaction_comment]').val(data.data) if (data.type==1) { $('#addComment').find('textarea[name=transaction_comment]').attr('disabled','disabled') $('.postCommentBtn').hide() } else { $('#addComment').find('textarea[name=transaction_comment]').removeAttr('disabled') $('.postCommentBtn').show() } } }); $('#addComment').addClass('swal-overlay--show-modal') }) // store button $('body').on('click','.postCommentBtn',function () { $('#addComment').find('textarea[name=transaction_comment]').focus() var that = $(this) $.ajax({ type: "get", url: '/api/postComment?id='+$(this).attr('data-id')+'&comment='+$('textarea[name=transaction_comment]').val(), success: function(data) { $('#addComment').find('textarea[name=transaction_comment]').val(data.data) $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(10).html('<span><span class="d-inline-flex">'+data.data+'</span></span>'); } }); $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') }) // Close $('body').on('click','.swal-button--cancel',function () { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') }); }); // Process button $('body').on('click','#processBtn',function () { if ($(this).parents('#finshPayment').find('.req_amount').html()>1000) { alert('Maximun allowed is 1000') } else if ($('#pin').val().length==4) { $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">Processing</span></span>'); $('#processBtn').attr('disabled','disabled').html('Please wait ...') $('#processBtnRzp').attr('disabled','disabled').html('Please wait ...') $('#processBtnAgree').attr('disabled','disabled').html('Please wait ...') $('#processBtnPaisa').attr('disabled','disabled').html('Please wait ...') // loader(1) var that = $(this) setTimeout(function () { $.ajax({ type: "POST", global: false, data: { "headers": "{{ csrf_token() }}", }, // //async: false, url: '/api/processPaymentCashfree?id='+$(that).attr('data-id')+'&status='+$(that).attr('data-status')+'&pin='+$('#pin').val()+'&operator='+$(that).attr('data-operator'), success: function(data) { if (data.status==201) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') alert(data.message) $('#pin').val('').focus() } else { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') // loader(0) $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">'+data.payoutstatus+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(7).html('<span><span class="d-inline-flex">'+data.utr+'</span></span>'); // $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(9).html('<span><span class="d-inline-flex">'+data.payout_message+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(20).html('<span><span class="d-inline-flex">'+data.customer_comments+'</span></span>'); // crud.table.ajax.reload(); } } }); setTimeout(function () { $(that).removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_success').find('.finshPayment').hide() },2000) },100) } else { alert('Please enter PIN') } // $('.'+$(this).attr('data-id')+'_pending').remove() // $('.'+$(this).attr('data-id')+'_success').show() }) $('body').on('click','#processBtnPaisa',function () { if ($(this).parents('#finshPayment').find('.req_amount').html()>1000) { alert('Maximun allowed is 1000') } else if ($('#pin').val().length==4) { $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">Processing</span></span>'); $('#processBtn').attr('disabled','disabled').html('Please wait ...') $('#processBtnRzp').attr('disabled','disabled').html('Please wait ...') $('#processBtnPaisa').attr('disabled','disabled').html('Please wait ...') // loader(1) var that = $(this) setTimeout(function () { $.ajax({ type: "POST", global: false, data: { "headers": "{{ csrf_token() }}", }, // //async: false, url: '/api/processPaymentPaisa?id='+$(that).attr('data-id')+'&status='+$(that).attr('data-status')+'&pin='+$('#pin').val()+'&operator='+$(that).attr('data-operator'), success: function(data) { if (data.status==201) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') alert(data.message) $('#pin').val('').focus() } else { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') // loader(0) $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">'+data.payoutstatus+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(7).html('<span><span class="d-inline-flex">'+data.utr+'</span></span>'); // $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(9).html('<span><span class="d-inline-flex">'+data.payout_message+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(20).html('<span><span class="d-inline-flex">'+data.customer_comments+'</span></span>'); // crud.table.ajax.reload(); if (data.payoutstatus=='FAILED') { new Noty({ text: "Manual transaction error, Please check with team", type: "error" }).show(); } } } }); setTimeout(function () { $(that).removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_success').find('.finshPayment').hide() },2000) },100) } else { alert('Please enter PIN') } // $('.'+$(this).attr('data-id')+'_pending').remove() // $('.'+$(this).attr('data-id')+'_success').show() }) </script> <script> $('body').on('click','#processBtnInstaPay',function () { if ($(this).parents('#finshPayment').find('.req_amount').html()>1000) { alert('Maximun allowed is 1000') } else if ($('#pin').val().length==4) { $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">Processing</span></span>'); $('#processBtn').attr('disabled','disabled').html('Please wait ...') $('#processBtnRzp').attr('disabled','disabled').html('Please wait ...') $('#processBtnPaisa').attr('disabled','disabled').html('Please wait ...') $('#processBtnInstaPay').attr('disabled','disabled').html('Please wait ...') // loader(1) var that = $(this) setTimeout(function () { $.ajax({ type: "GET", global: false, data: { "headers": "{{ csrf_token() }}", }, // //async: false, url: '/api/processPaymentInstaPay?id='+$(that).attr('data-id')+'&status='+$(that).attr('data-status')+'&pin='+$('#pin').val()+'&operator='+$(that).attr('data-operator'), success: function(data) { if (data.status==201) { $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('#processBtnInstaPay').removeAttr('disabled').html('Process (InstaPay)') alert(data.message) $('#pin').val('').focus() } else { $('.swal-overlay--show-modal').removeClass('swal-overlay--show-modal') // loader(0) $('#processBtn').removeAttr('disabled').html('Process (Cashfree)') $('#processBtnRzp').removeAttr('disabled').html('Process (Razorpay)') $('#processBtnAgree').removeAttr('disabled').html('Process (Agreepay)') $('#processBtnPaisa').removeAttr('disabled').html('Process (FonePaisa)') $('#processBtnInstaPay').removeAttr('disabled').html('Process (InstaPay)') $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(6).html('<span><span class="d-inline-flex">'+data.payoutstatus+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(7).html('<span><span class="d-inline-flex">'+data.utr+'</span></span>'); // $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(9).html('<span><span class="d-inline-flex">'+data.payout_message+'</span></span>'); $('.'+$(that).attr('data-id')+'_div').parents('tr').find('td').eq(20).html('<span><span class="d-inline-flex">'+data.customer_comments+'</span></span>'); // crud.table.ajax.reload(); if (data.payoutstatus=='FAILED') { new Noty({ text: "Manual transaction error, Please check with team", type: "error" }).show(); } } } }); setTimeout(function () { $(that).removeClass('swal-overlay--show-modal') $('.'+$(that).attr('data-id')+'_success').find('.finshPayment').hide() },2000) },100) } else { alert('Please enter PIN') } // $('.'+$(this).attr('data-id')+'_pending').remove() // $('.'+$(this).attr('data-id')+'_success').show() }) </script>