message.blade.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. @extends('layouts.base')
  2. @section('content')
  3. <div class="jumbotron clearfix alert alert-{{$status}}" style="top: 30px;width: 70%;margin: auto;">
  4. <div class="row">
  5. {{--<div class="alert alert-danger">
  6. <button type="button" aria-hidden="true" class="close">
  7. <i class="material-icons">close</i>
  8. </button>
  9. <span><b> Danger - </b> This is a regular notification made with ".alert-danger"</span>
  10. </div>--}}
  11. <div class="col-xs-12 col-sm-3 col-lg-2">
  12. <i class="fa fa-5x
  13. @if($status=='success') fa-check-circle @endif
  14. @if($status=='danger') fa-times-circle @endif
  15. @if($status=='info') fa-info-circle @endif
  16. @if($status=='warning') fa-exclamation-triangle @endif
  17. "></i>
  18. </div>
  19. <div class="col-xs-12 col-sm-8 col-md-9 col-lg-10">
  20. <p>{!! $message !!}</p>
  21. @if($redirect)
  22. <p><a style="text-decoration: none" href="{!! $redirect !!}">如果你的浏览器没有自动跳转,请点击此链接</a></p>
  23. <script type="text/javascript">
  24. setTimeout(function () {
  25. location.href = "{!! $redirect !!}";
  26. }, 3000);
  27. </script>
  28. @else
  29. <script type="text/javascript">
  30. setTimeout(function () {
  31. history.go(-1);
  32. }, 3000);
  33. </script>
  34. <p>[<a style="text-decoration: none" href="javascript:history.go(-1);">点击这里返回上一页</a>] &nbsp; [<a href="{{yzWebUrl('index.index')}}">首页</a>]</p>
  35. @endif
  36. </div>
  37. </div>
  38. </div>
  39. <style>
  40. .main-panel{
  41. width:100%;
  42. }
  43. .sidebar2{display:none !important;}
  44. </style>
  45. @endsection