footer.blade.php 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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; 2022 Kementerian Komunikasi dan Informatika Republik Indonesia
  7. </div>
  8. <div class="copyright text-center text-xl-left text-muted" style="font-size: 10px; color: #cdced0 !important;">
  9. Powered by INTIMULTISOLUSI
  10. </div>
  11. </div>
  12. </div>
  13. </footer>
  14. <script>
  15. $('.deleteConfirmation').confirm({
  16. title: 'Delete',
  17. autoClose: 'no|8000',
  18. type: 'red',
  19. typeAnimated: true,
  20. icon: 'fas fa-trash',
  21. content: 'Are you sure to delete ?',
  22. buttons: {
  23. deleteUser: {
  24. text: 'Yes',
  25. btnClass: 'btn-danger',
  26. action: function () {
  27. location.href = this.$target.attr('href');
  28. }
  29. },
  30. no: function () {
  31. }
  32. }
  33. });
  34. $('.confirmation').confirm({
  35. title: 'Konfirmasi',
  36. type: 'green',
  37. typeAnimated: true,
  38. icon: 'fas fa-save',
  39. content: 'Anda yakin akan menyimpan data ?',
  40. buttons: {
  41. confirm: {
  42. text: 'Simpan',
  43. btnClass: 'btn-success',
  44. action: function () {
  45. var target = $(this)[0].$target[0].dataset.target;
  46. let valid = true;
  47. $('#'+target+' [required]').each(function() {
  48. if ($(this).is(':invalid') || !$(this).val()) valid = false;
  49. })
  50. if(!valid){
  51. alert("Data tidak valid, silakan cek kembali dan lengkapi formulir");
  52. }else{
  53. $('#'+target).trigger('submit')
  54. }
  55. }
  56. },
  57. cancel: {
  58. text: 'Batal'
  59. }
  60. }
  61. });
  62. </script>