message.blade.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. @if(Session::has('success'))
  2. <div class="alert alert-success">
  3. <a class="close" data-dismiss="alert" href="#">&times;</a>
  4. <strong><i class="fa fa-check"></i></strong>&nbsp;
  5. &nbsp;
  6. {{Session::get('success')}}
  7. </div>
  8. @endif
  9. @if(Session::has('info'))
  10. <div class="alert alert-info">
  11. <a class="close" data-dismiss="alert" href="#">&times;</a>
  12. <strong><i class="fa fa-info"></i></strong>&nbsp;
  13. &nbsp;
  14. {{Session::get('info')}}
  15. </div>
  16. @endif
  17. @if(Session::has('warning'))
  18. <div class="alert alert-warning">
  19. <a class="close" data-dismiss="alert" href="#">&times;</a>
  20. <strong><i class="fa fa-warning"></i></strong>&nbsp;
  21. &nbsp;
  22. {{Session::get('warning')}}
  23. </div>
  24. @endif
  25. @if(Session::has('error'))
  26. <div class="alert alert-danger">
  27. <a class="close" data-dismiss="alert" href="#">&times;</a>
  28. <strong><i class="fa fa-times"></i></strong>&nbsp;
  29. &nbsp;
  30. {{Session::get('error')}}
  31. </div>
  32. @endif
  33. @if($errors->has())
  34. @foreach ($errors->all() as $error)
  35. <div class="alert alert-danger">
  36. <a class="close" data-dismiss="alert" href="#">&times;</a>
  37. <strong><i class="fa fa-times"></i></strong>&nbsp;
  38. &nbsp;
  39. {{$error}}
  40. </div>
  41. @endforeach
  42. @endif