js.blade.php 833 B

123456789101112131415161718192021222324252627282930313233
  1. <script src="https://cdnjs.cloudflare.com/ajax/libs/less.js/3.9.0/less.min.js"></script>
  2. @include('dev.helpers.jquery')
  3. <script src="{{asset('templates/assets/js/jquery-confirm.js') }}"></script>
  4. <script>
  5. @if(count($errors) > 0 || Session::has('success') || Session::has('info') || Session::has('warning'))
  6. $.confirm({
  7. title: '{{Session::get('info')}}',
  8. content: '{{Session::get('alert')}}',
  9. type: '{{Session::get('colors')}}',
  10. icon: '{{Session::get('icons')}}',
  11. typeAnimated: true,
  12. buttons: {
  13. close: function () {
  14. }
  15. }
  16. });
  17. @elseif(count($errors) == 0)
  18. return false;
  19. @else
  20. $.confirm({
  21. title: '{{Session::has('info')}}',
  22. content: '{{Session::get('alert')}}',
  23. type: 'red',
  24. typeAnimated: true,
  25. icon: 'fas fa-exclamation-triangle',
  26. buttons: {
  27. close: function () {
  28. }
  29. }
  30. });
  31. @endif
  32. </script>