scriptCheck.blade.php 1014 B

123456789101112131415161718192021222324252627282930313233
  1. <script type="text/javascript">
  2. $('.buttonDetail').click(function(){
  3. var id = $(this).attr('data-id');
  4. $.ajax
  5. ({
  6. url: '{{URL::current()}}/' + id,
  7. type: 'get',
  8. success: function(result){
  9. $('#detailClientId').text(result.clnt_id);
  10. $('#detailClientName').text(result.clnt_name);
  11. $('#detailSidLong').text(result.sid_long);
  12. $('#detailSidLat').text(result.sid_lat);
  13. $('#detailCity').text(result.city);
  14. $('#detailSiteId').text(result.site_id);
  15. },
  16. error: function () {
  17. $('#detailClose').click();
  18. $.confirm({
  19. title: 'Something Wrong',
  20. content: 'Wait few Minutes',
  21. type: 'red',
  22. typeAnimated: true,
  23. icon: 'fas fa-exclamation-triangle',
  24. buttons: {
  25. close: function () {
  26. }
  27. }
  28. });
  29. }
  30. });
  31. });
  32. </script>