layouts.blade.php 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <!DOCTYPE html>
  2. <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
  3. <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
  4. <!--[if !IE]><!-->
  5. <html lang="{{app()->getLocale()}}">
  6. <!--<![endif]-->
  7. <head>
  8. <meta charset="utf-8" />
  9. <title>@yield('title')</title>
  10. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  11. <meta content="width=device-width, initial-scale=1" name="viewport" />
  12. <meta content="" name="description" />
  13. <meta content="" name="author" />
  14. <!-- BEGIN GLOBAL MANDATORY STYLES -->
  15. <link href="/assets/global/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css" />
  16. <link href="/assets/global/plugins/simple-line-icons/simple-line-icons.min.css" rel="stylesheet" type="text/css" />
  17. <link href="/assets/global/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
  18. <link href="/assets/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css" rel="stylesheet" type="text/css" />
  19. <!-- END GLOBAL MANDATORY STYLES -->
  20. <!-- BEGIN PAGE LEVEL PLUGINS -->
  21. @yield('css')
  22. <!-- END PAGE LEVEL PLUGINS -->
  23. <!-- BEGIN THEME GLOBAL STYLES -->
  24. <link href="/assets/global/css/components-rounded.min.css" rel="stylesheet" id="style_components" type="text/css" />
  25. <link href="/assets/global/css/plugins.min.css" rel="stylesheet" type="text/css" />
  26. <!-- END THEME GLOBAL STYLES -->
  27. <!-- BEGIN THEME LAYOUT STYLES -->
  28. <link href="/assets/layouts/layout4/css/layout.min.css" rel="stylesheet" type="text/css" />
  29. <link href="/assets/layouts/layout4/css/themes/default.min.css" rel="stylesheet" type="text/css" id="style_color" />
  30. <link href="/assets/layouts/layout4/css/custom.min.css" rel="stylesheet" type="text/css" />
  31. <!-- END THEME LAYOUT STYLES -->
  32. <link rel="shortcut icon" href="favicon.ico" />
  33. </head>
  34. <body class="page-container-bg-solid page-header-fixed page-sidebar-closed-hide-logo">
  35. <!-- BEGIN HEADER -->
  36. <div class="page-header navbar navbar-fixed-top">
  37. <!-- BEGIN HEADER INNER -->
  38. <div class="page-header-inner ">
  39. <!-- BEGIN LOGO -->
  40. <div class="page-logo">
  41. <a href="{{url('/user')}}">
  42. <img src="/assets/images/logo.png" alt="logo" class="logo-default" /> </a>
  43. <div class="menu-toggler sidebar-toggler">
  44. <!-- DOC: Remove the above "hide" to enable the sidebar toggler button on header -->
  45. </div>
  46. </div>
  47. <!-- END LOGO -->
  48. <!-- BEGIN RESPONSIVE MENU TOGGLER -->
  49. <a href="javascript:;" class="menu-toggler responsive-toggler" data-toggle="collapse" data-target=".navbar-collapse"> </a>
  50. <!-- END RESPONSIVE MENU TOGGLER -->
  51. <!-- BEGIN PAGE TOP -->
  52. <div class="page-top">
  53. <!-- BEGIN TOP NAVIGATION MENU -->
  54. <div class="top-menu">
  55. <ul class="nav navbar-nav pull-right">
  56. <li class="separator hide"> </li>
  57. <!-- BEGIN USER LOGIN DROPDOWN -->
  58. <!-- DOC: Apply "dropdown-dark" class after below "dropdown-extended" to change the dropdown styte -->
  59. <li class="dropdown dropdown-user dropdown-dark">
  60. <a href="javascript:;" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">
  61. <span class="username username-hide-on-mobile"> {{Session::get('user')['username']}} </span>
  62. <!-- DOC: Do not remove below empty space(&nbsp;) as its purposely used -->
  63. <img alt="" class="img-circle" src="/assets/images/avatar.jpg" /> </a>
  64. <ul class="dropdown-menu dropdown-menu-default">
  65. <li>
  66. <a href="{{url('user/profile')}}"> <i class="icon-user"></i> 个人资料 </a>
  67. </li>
  68. <li>
  69. <a href="{{url('logout')}}"> <i class="icon-key"></i> 退出 </a>
  70. </li>
  71. </ul>
  72. </li>
  73. <!-- END USER LOGIN DROPDOWN -->
  74. </ul>
  75. </div>
  76. <!-- END TOP NAVIGATION MENU -->
  77. </div>
  78. <!-- END PAGE TOP -->
  79. </div>
  80. <!-- END HEADER INNER -->
  81. </div>
  82. <!-- END HEADER -->
  83. <!-- BEGIN HEADER & CONTENT DIVIDER -->
  84. <div class="clearfix"> </div>
  85. <!-- END HEADER & CONTENT DIVIDER -->
  86. <!-- BEGIN CONTAINER -->
  87. <div class="page-container">
  88. <!-- BEGIN SIDEBAR -->
  89. <div class="page-sidebar-wrapper">
  90. <!-- BEGIN SIDEBAR -->
  91. <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
  92. <!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
  93. <div class="page-sidebar navbar-collapse collapse">
  94. <!-- BEGIN SIDEBAR MENU -->
  95. <!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
  96. <!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
  97. <!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
  98. <!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
  99. <!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
  100. <!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
  101. <ul class="page-sidebar-menu " data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
  102. <li class="nav-item start {{Request::getRequestUri() == '/user' ? 'active open' : ''}}">
  103. <a href="{{url('user')}}" class="nav-link nav-toggle">
  104. <i class="icon-home"></i>
  105. <span class="title">首页</span>
  106. <span class="selected"></span>
  107. </a>
  108. </li>
  109. <li class="nav-item {{Request::getRequestUri() == '/user/nodeList' ? 'active open' : ''}}">
  110. <a href="{{url('user/nodeList')}}" class="nav-link nav-toggle">
  111. <i class="icon-list"></i>
  112. <span class="title">节点列表</span>
  113. </a>
  114. </li>
  115. <li class="nav-item {{Request::getRequestUri() == '/user/trafficLog' ? 'active open' : ''}}">
  116. <a href="{{url('user/trafficLog')}}" class="nav-link nav-toggle">
  117. <i class="icon-speedometer"></i>
  118. <span class="title">流量日志</span>
  119. </a>
  120. </li>
  121. <li class="nav-item {{Request::getRequestUri() == '/user/invite' ? 'active open' : ''}}">
  122. <a href="{{url('user/invite')}}" class="nav-link nav-toggle">
  123. <i class="icon-user-follow"></i>
  124. <span class="title">邀请码</span>
  125. </a>
  126. </li>
  127. <li class="nav-item {{in_array(Request::getRequestUri(), ['/user/goodsList', '/user/addOrder']) ? 'active open' : ''}}">
  128. <a href="{{url('user/goodsList')}}" class="nav-link nav-toggle">
  129. <i class="icon-basket"></i>
  130. <span class="title">流量包</span>
  131. </a>
  132. </li>
  133. <li class="nav-item {{in_array(Request::getRequestUri(), ['/user/orderList']) ? 'active open' : ''}}">
  134. <a href="{{url('user/orderList')}}" class="nav-link nav-toggle">
  135. <i class="icon-wallet"></i>
  136. <span class="title">消费记录</span>
  137. </a>
  138. </li>
  139. <li class="nav-item {{Request::getRequestUri() == '/user/ticketList' ? 'active open' : ''}}">
  140. <a href="{{url('user/ticketList')}}" class="nav-link nav-toggle">
  141. <i class="icon-question"></i>
  142. <span class="title">工单</span>
  143. </a>
  144. </li>
  145. <li class="nav-item {{Request::getRequestUri() == '/user/referral' ? 'active open' : ''}}">
  146. <a href="{{url('user/referral')}}" class="nav-link nav-toggle">
  147. <i class="icon-diamond"></i>
  148. <span class="title">推广返利</span>
  149. </a>
  150. </li>
  151. </ul>
  152. <!-- END SIDEBAR MENU -->
  153. </div>
  154. <!-- END SIDEBAR -->
  155. </div>
  156. <!-- END SIDEBAR -->
  157. <!-- BEGIN CONTENT -->
  158. <div class="page-content-wrapper">
  159. @yield('content')
  160. </div>
  161. <!-- END CONTENT -->
  162. </div>
  163. <!-- END CONTAINER -->
  164. <!-- BEGIN FOOTER -->
  165. <div class="page-footer">
  166. <div class="page-footer-inner"> 2017 &copy; <a href="https://github.com/ssrpanel/ssrpanel" target="_blank">SSRPanel</a> </div>
  167. <div class="scroll-to-top">
  168. <i class="icon-arrow-up"></i>
  169. </div>
  170. </div>
  171. <!-- END FOOTER -->
  172. <!--[if lt IE 9]>
  173. <script src="/assets/global/plugins/respond.min.js"></script>
  174. <script src="/assets/global/plugins/excanvas.min.js"></script>
  175. <script src="/assets/global/plugins/ie8.fix.min.js"></script>
  176. <![endif]-->
  177. <!-- BEGIN CORE PLUGINS -->
  178. <script src="/assets/global/plugins/jquery.min.js" type="text/javascript"></script>
  179. <script src="/assets/global/plugins/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
  180. <script src="/assets/global/plugins/js.cookie.min.js" type="text/javascript"></script>
  181. <script src="/assets/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js" type="text/javascript"></script>
  182. <script src="/assets/global/plugins/jquery.blockui.min.js" type="text/javascript"></script>
  183. <script src="/assets/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js" type="text/javascript"></script>
  184. <!-- END CORE PLUGINS -->
  185. <!-- BEGIN PAGE LEVEL PLUGINS -->
  186. @yield('script')
  187. <!-- END PAGE LEVEL PLUGINS -->
  188. <!-- BEGIN THEME GLOBAL SCRIPTS -->
  189. <script src="/assets/global/scripts/app.min.js" type="text/javascript"></script>
  190. <!-- END THEME GLOBAL SCRIPTS -->
  191. <!-- BEGIN THEME LAYOUT SCRIPTS -->
  192. <script src="/assets/layouts/layout4/scripts/layout.min.js" type="text/javascript"></script>
  193. <!-- END THEME LAYOUT SCRIPTS -->
  194. </body>
  195. </html>