bottom.blade.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. @stack('scripts')
  2. <!-- Core JS files -->
  3. <script src="{{ asset('/assets/global/js/main/bootstrap.bundle.min.js')}}"></script>
  4. <script src="{{ asset('/assets/global/js/plugins/loaders/blockui.min.js')}}"></script>
  5. <script src="{{ asset('/assets/global/js/plugins/ui/ripple.min.js')}}"></script>
  6. <!-- Theme JS files -->
  7. <script src="{{ asset('/assets/global/js/plugins/buttons/spin.min.js')}}"></script>
  8. <script src="{{ asset('/assets/global/js/plugins/buttons/ladda.min.js')}}"></script>
  9. <script src="{{ asset('/assets/global/js/plugins/forms/styling/switchery.min.js')}}"></script>
  10. <script src="{{ asset('/assets/global/js/plugins/forms/selects/bootstrap_multiselect.js')}}"></script>
  11. <script src="{{ asset('/assets/global/js/plugins/ui/moment/moment.min.js')}}"></script>
  12. <script src="{{ asset('/assets/global/js/plugins/pickers/daterangepicker.js')}}"></script>
  13. <script src="{{ asset('/assets/global/js/plugins/notifications/pnotify.min.js')}}"></script>
  14. <script type="text/javascript">
  15. function notify(type,text){
  16. var bg = '';
  17. if(type == 'error'){
  18. bg = 'bg-danger';
  19. }else if(type == 'success'){
  20. bg = 'bg-success';
  21. }else if(type == 'warning'){
  22. bg = 'bg-warning';
  23. }else{
  24. bg = 'bg-info';
  25. }
  26. new PNotify({
  27. type: type,
  28. text: text,
  29. delay: 3000,
  30. addclass: bg
  31. });
  32. }
  33. </script>
  34. @if ($message = Session::get('success'))
  35. <script type="text/javascript">
  36. $(document).ready(function(){
  37. var msg = "{{ $message }}";
  38. notify('success',msg);
  39. });
  40. </script>
  41. @endif
  42. @if ($message = Session::get('error'))
  43. <script type="text/javascript">
  44. $(document).ready(function(){
  45. var msg = "{{ $message }}";
  46. notify('error',msg);
  47. });
  48. </script>
  49. @endif
  50. <script src="{{ asset('/assets/js/app.js')}}"></script>