menu.blade.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {{-- 后台导航栏 --}}
  2. <style>
  3. .nav-md .container.body .col-md-3.left_col {
  4. position: fixed;
  5. top: 0;
  6. left: 0;
  7. bottom: 0;
  8. width: 230px;
  9. overflow-y: scroll;
  10. }
  11. .nav-md .container.body .col-md-3.left_col::-webkit-scrollbar {
  12. width: 0;
  13. height: 0;
  14. }
  15. </style>
  16. <div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
  17. <div class="menu_section">
  18. <h3>General</h3>
  19. <ul class="nav side-menu">
  20. @foreach($menu_list as $menu)
  21. <li><a><i class="fa {{ $menu['label_name'] }}"></i> {{ $menu['menu_name'] }} <span
  22. class="fa fa-chevron-down"></span></a>
  23. <ul class="nav child_menu">
  24. @foreach($menu['items'] as $item)
  25. <li><a href="{{ route($item['url_name']) }}">{{ $item['menu_name'] }}</a></li>
  26. @endforeach
  27. </ul>
  28. </li>
  29. @endforeach
  30. </ul>
  31. </div>
  32. </div>
  33. {{-- 导航菜单按钮 --}}
  34. <div class="sidebar-footer hidden-small">
  35. <a data-toggle="tooltip" data-placement="top" title="Settings">
  36. <span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
  37. </a>
  38. <a data-toggle="tooltip" data-placement="top" title="FullScreen">
  39. <span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
  40. </a>
  41. <a data-toggle="tooltip" data-placement="top" title="锁屏" id="lock">
  42. <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
  43. </a>
  44. <a data-toggle="tooltip" data-placement="top" title="安全退出" class="logOut">
  45. <span class="glyphicon glyphicon-off" aria-hidden="true"></span>
  46. <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
  47. {{ csrf_field() }}
  48. </form>
  49. </a>
  50. </div>