One Hat Cyber Team
Your IP :
216.73.216.84
Server IP :
50.6.229.107
Server :
Linux server.hostburly.com 5.14.0-611.38.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 10 17:21:28 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.30
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
andjemzt
/
public_html
/
armu
/
resources
/
views
/
View File Name :
processrecord.blade.php
<script> //process this when user click on pay $(document).ready(function(){ $(".numbers").keydown(function (event) { if (event.shiftKey == true) { event.preventDefault(); } if ((event.keyCode >= 48 && event.keyCode <= 57) || (event.keyCode >= 96 && event.keyCode <= 105) || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 37 || event.keyCode == 39 || event.keyCode == 46 || event.keyCode == 190) { } else { event.preventDefault(); } if($(this).val().indexOf('.') !== -1 && event.keyCode == 190) event.preventDefault(); //if a decimal has been added, disable the "."-button }); $("#proceed").hide(); $("#nationality").change(function(){ $("#country").html($("#nationality").val()); }); $("#savebutton").click(function(){ $("#submittype").val("save"); }); $("#submitbutton").click(function(){ $("#submittype").val("submit"); }); $("#submitrecord").on('submit', function(event){ event.preventDefault(); var submittype = $("#submittype").val(); if(submittype == "submit"){ const swalWithBootstrapButtons = Swal.mixin({ confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger', buttonsStyling: false, }) swalWithBootstrapButtons.fire({ title: 'Are you sure?', text: "You are about to submit this record for approval and won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonText: 'Yes, proceed!', cancelButtonText: 'No, cancel!', reverseButtons: true }).then((result) => { if (result.value) { $.ajax({ type: 'POST', url: '{{ url("submitasset") }}', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#submitbutton").hide(); $("#savebutton").hide(); $("#processing").show(); }, success: function(data){ if(data.message == "success"){ swalWithBootstrapButtons.fire( 'Success!', data.info, 'success' ); setTimeout(function() { location.href = '/assetrecovery'; }, 3000); }else{ swalWithBootstrapButtons.fire( 'Error!', data.info, 'error' ); } } }); } else if ( // Read more about handling dismissals result.dismiss === Swal.DismissReason.cancel ) { swalWithBootstrapButtons.fire( 'Cancelled', 'Record Not Published', 'error' ) } }) }else if(submittype == "save"){ $.ajax({ type: 'POST', url: '{{ url("saveasset") }}', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#savebutton").hide(); $("#submitbutton").hide(); $("#processing").show(); }, success: function(data){ $("#message").css('display', 'block'); $("#message").html(data.info); $("#message").removeClass('alert-success'); $("#message").removeClass('alert-danger'); $("#message").addClass(data.class_name); $("#savebutton").show(); $("#submitbutton").show(); $("#processing").hide(); } }); } }); //submit asset /*$("#submitbuttons").on('submit', function(event){ event.preventDefault(); $.ajax({ type: 'POST', url: 'submitasset', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#submitbutton").hide(); $("#processing").show(); }, success: function(data){ $("#message").css('display', 'block'); $("#message").html(data.info); $("#message").removeClass('alert-success'); $("#message").removeClass('alert-danger'); $("#message").addClass(data.class_name); $("#submitbutton").show(); $("#processing").hide(); } }); }); $("#savebuttons").click(function(){ event.preventDefault(); $.ajax({ type: 'POST', url: 'saveasset', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#submitbutton").hide(); $("#processing").show(); }, success: function(data){ $("#message").css('display', 'block'); $("#message").html(data.info); $("#message").removeClass('alert-success'); $("#message").removeClass('alert-danger'); $("#message").addClass(data.class_name); $("#submitbutton").show(); $("#processing").hide(); } }); });*/ //update agency $("#updateagency").on('submit', function(event){ event.preventDefault(); $.ajax({ type: 'POST', url: 'agencyupdate', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#modal").show(); }, success: function(data){ $("#message").css('display', 'block'); $("#message").html(data.message); $("#message").removeClass('alert-success'); $("#message").removeClass('alert-danger'); $("#message").addClass(data.class_name); $("#update").hide(); $("#proceed").show(); $("#modal").hide(); } }); }); //update user $("#userupdate").on('submit', function(event){ event.preventDefault(); $.ajax({ type: 'POST', url: 'submituserupdate', data: new FormData(this), contentType: false, cache: false, processData: false, beforeSend:function(){ $("#modal").show(); }, success: function(data){ $("#message").css('display', 'block'); $("#message").html(data.message); $("#message").removeClass('alert-success'); $("#message").removeClass('alert-danger'); $("#message").addClass(data.class_name); $("#update").hide(); $("#proceed").show(); $("#modal").hide(); } }); }); $("#physicalasset").click(function(){ $(".physicaldiv").toggle(); }); $("#cashassets").click(function(){ $(".cashdiv").toggle(); }); $("#movableasset").click(function(){ $(".movablediv").toggle(); }); $("#immovableasset").click(function(){ $(".immovablediv").toggle(); }); var x = $("#addedmovableasset").val(); $("#addmovable").click(function(){ $("#movablediv").append('<hr id="mhr'+x+'"><div class="row" id="mrow'+x+'"><div class="col-md-6 movableassettype" style="display: block;"><strong>Description of Movable Assets</strong><br /><div class="form-group"><input type="text" name="movableassetdescription[]" id="movableassetdescription'+x+'" class="form-control" placeholder="Asset Description"></div></div><div class="col-md-3 movableassettype" style="display: block;"><strong>Total Value of Asset (NGN)</strong><br /><div class="form-group"><input type="text" name="movableassetvalue[]" id="movableassetvalue'+x+'" class="form-control numbers" placeholder="E.g. 100000000"></div></div><div class="col-md-3 movableassettype" style="display: block;"><strong>Select State </strong><br /><div class="form-group"><select name="movableassetstate[]" id="movableassetstate'+x+'" class="form-control"><option value="">Select State</option>@foreach($states as $state)<option>{{ $state->State }}</option>@endforeach</select></div></div><!--<div class="col-md-3 movableassettype" style="display: block;"><strong>Upload Asset Image</strong><br /><input type="file" name="uploadmovableasset[]" class="form-control" id="uploadmovableasset'+x+'" multiple></div>--><div class="col-md-6 movableassettype" style="display: block;"><strong>Location of Asset</strong><br /><div class="form-group"><input type="text" name="movableassetlocation[]" id="movableassetlocation'+x+'" class="form-control" placeholder="Address of the Asset"></div></div><div class="col-md-2 movableassettype" style="display: block;"><strong>Status of Asset</strong><br /><div class="form-group"><select name="movableassetstatus[]" id="movableassetstatus'+x+'" class="form-control"><option value="">Select Status</option><option>In Custody</option><option>Repatriated</option><option>Auctioned</option><option>Remitted</option><option>Transferred</option></select></div></div><div class="col-md-4 movableassettype" style="display: block;"><strong>Beneficiary (Optional)</strong><br /><div class="form-group"><input type="text" name="mbeneficiaey[]" id="mbeneficiary" class="form-control" placeholder="E.g. Federal Government of Nigeria"></div></div><div class="col-md-12 movableassettype" style="display: block;"><strong>Additional Information (Optional)</strong><br /><div class="form-group"><input type="text" name="madditionalinfo[]" id="madditionalinfo'+x+'" class="form-control" placeholder="Additional Information"></div></div></div>'); x++; }); $("#removemovable").click(function(){ --x; $("#mhr"+x).remove(); $("#mrow"+x).remove(); }); var i = $("#addedimmovableasset").val(); $("#addimmovable").click(function(){ $("#immovablediv").append('<hr id="hrim'+i+'"><div class="row" id="imrow'+i+'"><div class="col-md-6 movableassettype" style="display: block;"><strong>Description of Immovable Assets</strong><br /><div class="form-group"><input type="text" name="imdescription[]" id="imdescription'+i+'" class="form-control" placeholder="Asset Description"></div></div><div class="col-md-3 movableassettype" style="display: block;"><strong>Total Value of Asset (NGN)</strong><br /><div class="form-group"><input type="text" name="imtotalvalue[]" id="imtotalvalue'+i+'" class="form-control numbers" placeholder="E.g. 100000000"></div></div><div class="col-md-3 movableassettype" style="display: block;"><strong>Select State</strong><br /><div class="form-group"><select name="imstate[]" id="imstate'+i+'" class="form-control"><option value="">Select State</option>@foreach($states as $state)<option>{{ $state->State }}</option>@endforeach</select></div></div><!--<div class="col-md-3 movableassettype" style="display: block;"><strong>Upload Asset Image</strong><br /><input type="file" name="imuploads[]" class="form-control" id="imuploads'+i+'" multiple></div>--><div class="col-md-6 movableassettype" style="display: block;"><strong>Location of Asset</strong><br /><div class="form-group"><input type="text" name="imassetlocation[]" id="imassetlocation'+i+'" class="form-control" placeholder="Address of the Asset"></div></div><div class="col-md-2 movableassettype" style="display: block;"><strong>Status of Asset</strong><br /><div class="form-group"><select name="imstatus[]" id="imstatus'+i+'" class="form-control"><option value="">Select Status</option><option>In Custody</option><option>Repatriated</option><option>Auctioned</option><option>Remitted</option><option>Transferred</option></select></div></div><div class="col-md-4 movableassettype" style="display: block;"><strong>Beneficiary (Optional)</strong><br /><div class="form-group"><input type="text" name="imbeneficiaey[]" id="imbeneficiary" class="form-control" placeholder="E.g. Federal Government of Nigeria"></div></div><div class="col-md-12 movableassettype" style="display: block;"><strong>Additional Information (Optional)</strong><br /><div class="form-group"><input type="text" name="imadditionalinfo[]" id="imadditionalinfo'+i+'" class="form-control" placeholder="Additional Information"></div></div></div>'); ++i; }); $("#removeimmovable").click(function(){ --i; $("#hrim"+i).remove(); $("#imrow"+i).remove(); }); let k = $("#addedcashasset").val(); $("#addcash").click(function(){ $("#cashassetdiv").append('<div class="col-md-12"><div class="row" id="cash'+k+'"><div class="col-md-2 cashdiv"><strong>Currency</strong> <br /><div class="form-group"><select name="currency[]" id="currency" class="form-control"><option value="">Select</option><option>NGN</option><option>USD</option><option>EUR</option><option>GBP</option><option>CAD</option><option>AUD</option><option>NZD</option></select></div></div><div class="col-md-3 cashdiv"><strong>Cash Asset Value</strong> <br /><div class="form-group"><input type="text" name="cashassetvalue[]" id="" class="form-control numbers" placeholder="E.g. 1,000,000"></div></div><div class="col-md-3 cashdiv"><strong>Cash Asset Status</strong><br /><div class="form-group"><select name="cashassetstatus[]" id="cashassetstatus" class="form-control"><option value="">Select Status</option><option>In Custody</option><option>Repatriated</option><option>Remitted</option><option>Refunded</option></select></div></div><div class="col-md-4"><strong>Beneficiary (Optional)</strong><br /><div class="form-group"><input type="text" name="cashbeneficiary[]" id="" class="form-control" placeholder="E.g. Federal Government of Nigeria"></div></div></div></div>'); k++ }); $("#removecash").click(function(){ --k; $("#cash"+k).remove(); }); $(".approve").click(function(){ id = $(this).attr("id"); const swalWithBootstrapButtons = Swal.mixin({ confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger', buttonsStyling: false, }) swalWithBootstrapButtons.fire({ title: 'Are you sure?', text: "You are about to publish this record and won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonText: 'Yes, proceed!', cancelButtonText: 'No, cancel!', reverseButtons: true }).then((result) => { if (result.value) { $.ajax({ url: '/approveresord/'+id, beforeSend:function(){ $(".approve").hide(); $(".reject").hide(); $(".print").hide(); $("#processing").show(); }, success: function(data){ if(data.info == "success"){ swalWithBootstrapButtons.fire( 'Success!', data.message, 'success' ); setTimeout(function() { location.href = '/assetrecovery'; }, 3000); }else{ swalWithBootstrapButtons.fire( 'Error!', data.message, 'error' ); } } }); } else if ( // Read more about handling dismissals result.dismiss === Swal.DismissReason.cancel ) { swalWithBootstrapButtons.fire( 'Cancelled', 'Record Not Published', 'error' ) } }) }); $(".reject").click(function(){ id = $(this).attr("id"); const swalWithBootstrapButtons = Swal.mixin({ confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger', buttonsStyling: false, }) swalWithBootstrapButtons.fire({ title: 'Are you sure?', text: "You are about to reject this record and won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonText: 'Yes, proceed!', cancelButtonText: 'No, cancel!', reverseButtons: true }).then((result) => { if (result.value) { $.ajax({ url: '/rejectrecord/'+id, beforeSend:function(){ $(".approve").hide(); $(".reject").hide(); $(".print").hide(); $("#processing").show(); }, success: function(data){ if(data.info == "success"){ swalWithBootstrapButtons.fire( 'Success!', data.message, 'success' ); setTimeout(function() { location.href = '/assetrecovery'; }, 3000); }else{ swalWithBootstrapButtons.fire( 'Error!', data.message, 'error' ); } } }); } else if ( // Read more about handling dismissals result.dismiss === Swal.DismissReason.cancel ) { swalWithBootstrapButtons.fire( 'Cancelled', 'Record Not Published', 'error' ) } }) }); $(".trashasset").click(function(){ id = $(this).attr("id"); const swalWithBootstrapButtons = Swal.mixin({ confirmButtonClass: 'btn btn-success', cancelButtonClass: 'btn btn-danger', buttonsStyling: false, }) swalWithBootstrapButtons.fire({ title: 'Are you sure?', text: "You are about to delete this record and won't be able to revert this!", type: 'warning', showCancelButton: true, confirmButtonText: 'Yes, proceed!', cancelButtonText: 'No, cancel!', reverseButtons: true }).then((result) => { if (result.value) { $.ajax({ url: '/deleterecord/'+id, beforeSend:function(){ $(".approve").hide(); $(".reject").hide(); $(".print").hide(); $("#processing").show(); }, success: function(data){ if(data.info == "success"){ swalWithBootstrapButtons.fire( 'Success!', data.message, 'success' ); setTimeout(function() { location.href = '/assetrecovery'; }, 3000); }else{ swalWithBootstrapButtons.fire( 'Error!', data.message, 'error' ); } } }); } else if ( // Read more about handling dismissals result.dismiss === Swal.DismissReason.cancel ) { swalWithBootstrapButtons.fire( 'Cancelled', 'Record Not Published', 'error' ) } }); }); }); //end process </script>