layout.blade.php 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
  6. <meta name="csrf-token" content="{{ csrf_token() }}">
  7. <title>@yield('title') - 问答系统后台管理</title>
  8. <!-- Bootstrap 3.3.2 -->
  9. <link href="{{ asset('/static/css/bootstrap/css/bootstrap.min.css') }}" rel="stylesheet" type="text/css" />
  10. <link href="{{ asset('/static/css/icheck/all.css') }}" rel="stylesheet" type="text/css" />
  11. <link href="{{ asset('/static/js/scojs/sco.message.css') }}" rel="stylesheet" type="text/css" />
  12. <link href="{{ asset('/static/js/daterangepicker/daterangepicker-bs3.css') }}" rel="stylesheet" type="text/css" />
  13. <!-- Font Awesome Icons -->
  14. <link href="{{ asset('/static/css/font-awesome/css/font-awesome.min.css') }}" rel="stylesheet" type="text/css" />
  15. <!-- Theme style -->
  16. <link href="{{ asset('/css/admin/admin.css') }}" rel="stylesheet" type="text/css" />
  17. <!-- AdminLTE Skins. Choose a skin from the css/skins
  18. folder instead of downloading all of them to reduce the load. -->
  19. <link href="{{ asset('/css/admin/skins/_all-skins.min.css') }}" rel="stylesheet" type="text/css" />
  20. @yield('css')
  21. <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  22. <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  23. <!--[if lt IE 9]>
  24. <script src="{{ asset('js/html5shiv.min.js') }}"></script>
  25. <script src="{{ asset('js/respond.min.js') }}"></script>
  26. <![endif]-->
  27. </head>
  28. <body class="skin-blue sidebar-mini @if($sidebar_collapse) sidebar-collapse @endif">
  29. <div class="wrapper">
  30. <header class="main-header">
  31. <!-- Logo -->
  32. <div class="logo">
  33. <!-- mini logo for sidebar mini 50x50 pixels -->
  34. <span class="logo-mini"><b>T</b></span>
  35. <!-- logo for regular state and mobile devices -->
  36. <span class="logo-lg text-center">
  37. <a class="navbar-brand admin_logo" href="{{ route('admin.index.index') }}"></a>
  38. </span>
  39. </div>
  40. <!-- Header Navbar: style can be found in header.less -->
  41. <nav class="navbar navbar-static-top" role="navigation">
  42. <!-- Sidebar toggle button-->
  43. <a href="#" class="sidebar-toggle" id="sliderbar_control" data-toggle="offcanvas" role="button">
  44. <span class="sr-only">Toggle navigation</span>
  45. <span class="icon-bar"></span>
  46. <span class="icon-bar"></span>
  47. <span class="icon-bar"></span>
  48. </a>
  49. <div class="navbar-custom-menu">
  50. <ul class="nav navbar-nav">
  51. <!-- Notifications: style can be found in dropdown.less -->
  52. <li class="dropdown notifications-menu">
  53. {{-- <a href="#" class="dropdown-toggle" data-toggle="dropdown">--}}
  54. {{-- <i class="fa fa-bell-o"></i>--}}
  55. {{-- @if(array_sum($notVerifiedData)>0)--}}
  56. {{-- <span class="label label-warning">@if(array_sum($notVerifiedData)>99)99+@else{{ array_sum($notVerifiedData) }}@endif</span>--}}
  57. {{-- @endif--}}
  58. {{-- </a>--}}
  59. <ul class="dropdown-menu">
  60. <li class="header">共有 {{ array_sum($notVerifiedData) }} 个待处理事项</li>
  61. <li>
  62. <!-- inner menu: contains the actual data -->
  63. @if(array_sum($notVerifiedData)>0)
  64. <ul class="menu">
  65. @if( $notVerifiedData['users'] > 0 )
  66. <li>
  67. <a href="{{ route('admin.user.index') }}?status=0">
  68. <i class="fa fa-user-circle text-yellow"></i> {{ $notVerifiedData['users'] }} 个用户需要审核
  69. </a>
  70. </li>
  71. @endif
  72. @if( $notVerifiedData['experts'] > 0 )
  73. <li>
  74. <a href="{{ route('admin.authentication.index') }}?status=0">
  75. <i class="fa fa-graduation-cap text-yellow"></i> {{ $notVerifiedData['experts'] }} 个专家认证需要审核
  76. </a>
  77. </li>
  78. @endif
  79. @if( $notVerifiedData['questions'] > 0 )
  80. <li>
  81. <a href="{{ route('admin.question.index') }}?status=0">
  82. <i class="fa fa-question-circle text-yellow"></i> {{ $notVerifiedData['questions'] }} 个问题需要审核
  83. </a>
  84. </li>
  85. @endif
  86. @if( $notVerifiedData['answers'] > 0 )
  87. <li>
  88. <a href="{{ route('admin.answer.index') }}?status=0">
  89. <i class="fa fa-comment-o text-yellow"></i> {{ $notVerifiedData['answers'] }} 个回答需要审核
  90. </a>
  91. </li>
  92. @endif
  93. @if( $notVerifiedData['articles'] > 0 )
  94. <li>
  95. <a href="{{ route('admin.article.index') }}?status=0">
  96. <i class="fa fa-book text-yellow"></i> {{ $notVerifiedData['articles'] }} 篇文章需要审核
  97. </a>
  98. </li>
  99. @endif
  100. @if( $notVerifiedData['comments'] > 0 )
  101. <li>
  102. <a href="{{ route('admin.comment.index') }}?status=0">
  103. <i class="fa fa-comments-o text-yellow"></i> {{ $notVerifiedData['comments'] }} 个评论需要审核
  104. </a>
  105. </li>
  106. @endif
  107. @if( $notVerifiedData['exchanges'] > 0 )
  108. <li>
  109. <a href="{{ route('admin.exchange.index') }}?status=0">
  110. <i class="fa fa-exchange text-yellow"></i> {{ $notVerifiedData['exchanges'] }} 个兑换申请需要审核
  111. </a>
  112. </li>
  113. @endif
  114. </ul>
  115. @endif
  116. </li>
  117. </ul>
  118. </li>
  119. <!-- User Account: style can be found in dropdown.less -->
  120. <li class="dropdown user user-menu">
  121. <a href="#" class="dropdown-toggle" data-toggle="dropdown">
  122. <span class="hidden-xs">{{ Auth()->user()->name }}</span>
  123. </a>
  124. <ul class="dropdown-menu">
  125. <!-- User image -->
  126. {{-- <li class="user-header">--}}
  127. {{-- <img src="{{ get_user_avatar(Auth()->user()->id,'middle') }}" class="img-circle" alt="User Image" />--}}
  128. {{-- <p>--}}
  129. {{-- {{ Auth()->user()->name }}--}}
  130. {{-- <small>{{ Auth()->user()->title }}</small>--}}
  131. {{-- </p>--}}
  132. {{-- </li>--}}
  133. <!-- Menu Footer-->
  134. <li class="user-footer">
  135. {{--<div class="pull-left">--}}
  136. {{--<a href="#" class="btn btn-default btn-flat">修改密码</a>--}}
  137. {{--</div>--}}
  138. <div class="pull-right">
  139. <a href="{{ url('admin/logout') }}" class="btn btn-default btn-flat">退出登录</a>
  140. </div>
  141. </li>
  142. </ul>
  143. </li>
  144. </ul>
  145. </div>
  146. </nav>
  147. </header>
  148. <!-- Left side column. contains the logo and sidebar -->
  149. <aside class="main-sidebar">
  150. <!-- sidebar: style can be found in sidebar.less -->
  151. <section class="sidebar">
  152. @include('admin/public/menu')
  153. </section>
  154. <!-- /.sidebar -->
  155. </aside>
  156. <!-- Content Wrapper. Contains page content -->
  157. <div class="content-wrapper">
  158. @yield('content')
  159. </div><!-- /.content-wrapper -->
  160. @include('admin/public/footer')
  161. </div><!-- ./wrapper -->
  162. <!--scripts-->
  163. @include('admin/public/script')
  164. @yield('script')
  165. </body>
  166. </html>