footer.blade.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!-- Footer -->
  2. <footer class="footer">
  3. <div class="row align-items-center justify-content-xl-between">
  4. <div class="col-xl-6">
  5. <div class="copyright text-center text-xl-left text-muted">
  6. &copy; 2026 Direktorat Jenderal Infrastruktur Digital Kementerian Komdigi
  7. </div>
  8. </div>
  9. </div>
  10. </footer>
  11. <script>
  12. $('.deleteConfirmation').confirm({
  13. title: 'Delete',
  14. autoClose: 'no|8000',
  15. type: 'red',
  16. typeAnimated: true,
  17. icon: 'fas fa-trash',
  18. content: 'Are you sure to delete ?',
  19. buttons: {
  20. deleteUser: {
  21. text: 'Yes',
  22. btnClass: 'btn-danger',
  23. action: function () {
  24. location.href = this.$target.attr('href');
  25. }
  26. },
  27. no: function () {
  28. }
  29. }
  30. });
  31. $('.confirmation').confirm({
  32. title: 'Konfirmasi',
  33. type: 'green',
  34. typeAnimated: true,
  35. icon: 'fas fa-save',
  36. content: 'Anda yakin akan menyimpan data ?',
  37. buttons: {
  38. confirm: {
  39. text: 'Simpan',
  40. btnClass: 'btn-success',
  41. action: function () {
  42. var target = $(this)[0].$target[0].dataset.target;
  43. let valid = true;
  44. $('#'+target+' [required]').each(function() {
  45. if ($(this).is(':invalid') || !$(this).val()) valid = false;
  46. })
  47. if(!valid){
  48. alert("Data tidak valid, silakan cek kembali dan lengkapi formulir");
  49. }else{
  50. $('#'+target).trigger('submit')
  51. }
  52. }
  53. },
  54. cancel: {
  55. text: 'Batal'
  56. }
  57. }
  58. });
  59. </script>