side_layout.blade.php 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. @extends('admin/layout')
  2. @section('header')
  3. <link rel="stylesheet" href="{{url('css/admin/project/side.css')}}">
  4. @yield('header_extend')
  5. <style>
  6. .tabs-left {
  7. overflow: auto;
  8. width: 16.6666%;
  9. position: fixed;
  10. left: 0;
  11. top: 0;
  12. }
  13. .tabs-left ul li.active {
  14. background: #009688;
  15. }
  16. .tabs-left ul li.on ul {
  17. display: block;
  18. }
  19. .btn-primary {
  20. background: #009688;
  21. border-color: #009688;
  22. }
  23. .badge-warning, .label-warning {
  24. background: #009688 !important;
  25. }
  26. .tabs-left ul li {
  27. position: relative;
  28. }
  29. .tabs-left ul li a {
  30. font-size: 16px;
  31. display: inline-block;
  32. }
  33. .tabs-left ul li i.toggle-x {
  34. right: 15px;
  35. left: auto;
  36. cursor: pointer;
  37. }
  38. .tabs-left ul li i {
  39. font-size: 16px;
  40. }
  41. .tabs-left ul li ul li a {
  42. color: #333;
  43. font-size: 14px;
  44. }
  45. .tabs-left ul li ul li a.cur {
  46. background: #009688;
  47. color: #fff;
  48. }
  49. .tabs-left ul li ul {
  50. display: none;
  51. }
  52. /* .btn-info,.btn-success,.btn-warning{
  53. background: #009688 !important;
  54. border-color: #009688 !important;
  55. color: #fff;
  56. }
  57. .btn-info a, .btn-success a, .btn-warning a{
  58. color: #fff;
  59. } */
  60. .btn-primary, .btn-info, .btn-warning {
  61. background: #f3f3f3 !important;
  62. border-color: #e6e6e6 !important;
  63. color: #656565 !important;
  64. outline: none;
  65. }
  66. .btn-primary:hover, .btn-info:hover, .btn-warning:hover {
  67. background: #009688 !important;
  68. border-color: #009688 !important;
  69. color: #fff !important;
  70. }
  71. .page-tabs a.active {
  72. background: #009688 !important;
  73. }
  74. .input-group .form-control:focus, .input-group .single-line:focus {
  75. border-color: #009688 !important;
  76. }
  77. .input-group .form-control:focus {
  78. border-color: #009688 !important;
  79. }
  80. .ht-lefts {
  81. width: 16.6666% !important;
  82. float: left;
  83. }
  84. .ht-rights {
  85. width: 83.3333% !important;
  86. float: right;
  87. }
  88. @media screen and (max-width: 640px) {
  89. .ht-rights {
  90. width: 100% !important;
  91. }
  92. .ht-lefts {
  93. width: 100% !important;
  94. float: left;
  95. }
  96. }
  97. .badge {
  98. display: inline-block;
  99. min-width: 10px;
  100. font-size: 12px;
  101. font-weight: 700;
  102. line-height: 1;
  103. color: #fff;
  104. text-align: center;
  105. white-space: nowrap;
  106. vertical-align: middle;
  107. border-radius: 10px;
  108. padding: 2px 5px;
  109. background: #C00;
  110. top: -1px;
  111. margin-left: 10px;
  112. position: relative;
  113. }
  114. </style>
  115. @endsection
  116. @section('content')
  117. <body class="gray-bg">
  118. <div class="wrapper wrapper-content animated fadeIn">
  119. <div class="col-sm-12">
  120. <div class="tabs-container fix">
  121. <div class="col-sm-2 ht-lefts">
  122. <div class="tabs-left">
  123. <ul class="nav-tabs-boxs">
  124. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='overview')class="active"@endif>
  125. <a href="{{url('admin/sites/'.$siteId.'/overview')}}"><i
  126. class="fa fa-dedent"></i>项目概况</a>
  127. </li>
  128. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='customer')class="active"@endif>
  129. <a href="{{url('admin/sites/' .$siteId .'/customer')}}"> <i
  130. class="fa fa-street-view"></i>客户信息</a>
  131. </li>
  132. @hasAuth('sites-articles-view')
  133. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article' || \Illuminate\Support\Facades\Route::currentRouteName()=='article-find'|| \Illuminate\Support\Facades\Route::currentRouteName()=='article-note' ||\Illuminate\Support\Facades\Route::currentRouteName()=='article-overview') class="on" @endif>
  134. <a href="javascript:">
  135. <i class="fa fa-file-word-o"></i>软文</a>
  136. <i class="@if(\Illuminate\Support\Facades\Route::currentRouteName()=='article' || \Illuminate\Support\Facades\Route::currentRouteName()=='article-find' || \Illuminate\Support\Facades\Route::currentRouteName()=='article-note' || \Illuminate\Support\Facades\Route::currentRouteName()=='article-overview') fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  137. aria-hidden="true"></i>
  138. <ul>
  139. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-overview')class="active"@endif>
  140. <a href="{{url('admin/sites/'.$siteId.'/articles-overview')}}">软文概况</a>
  141. </li>
  142. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article')class="active"@endif>
  143. <a href="{{url('admin/sites/'.$siteId.'/articles')}}">软文管理</a>
  144. </li>
  145. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-find')class="active"@endif>
  146. <a href="{{url('admin/sites/'.$siteId.'/articles-find')}}">软文查找</a>
  147. </li>
  148. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-note')class="active"@endif>
  149. <a href="{{url('admin/sites/'.$siteId.'/articles-note')}}">软文规划表
  150. </a>
  151. </li>
  152. </ul>
  153. </li>
  154. @endHasAuth
  155. @hasAuth('sites-links-view')
  156. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-count' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-url' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-note') class="on" @endif>
  157. <a href="javascript:">
  158. <i class="fa fa-link "></i>外链</a>
  159. <i class="@if(\Illuminate\Support\Facades\Route::currentRouteName()=='link' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-count' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-url' || \Illuminate\Support\Facades\Route::currentRouteName()=='link-note') fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  160. aria-hidden="true"></i>
  161. <ul>
  162. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link')class="active"@endif>
  163. <a href="{{url('admin/link/sites/'.$siteId.'/tasks')}}">外链管理</a>
  164. </li>
  165. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-count')class="active"@endif>
  166. <a href="{{url('admin/link/sites/'.$siteId.'/link-count')}}">外链统计</a>
  167. </li>
  168. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-url')class="active"@endif>
  169. <a href="{{url('admin/link/sites/'.$siteId.'/link-url')}}">外链地址</a>
  170. </li>
  171. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-note')class="active"@endif>
  172. <a href="{{url('admin/sites/'.$siteId.'/link-note')}}">外链备注</a>
  173. </li>
  174. </ul>
  175. </li>
  176. @endHasAuth
  177. @hasAuth('sites-rank-view')
  178. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='rank' || \Illuminate\Support\Facades\Route::currentRouteName()=='keyword-extend') class="on" @endif>
  179. <a href="javascript:">
  180. <i class="fa fa-line-chart"></i>关键词</a>
  181. <i class="@if(\Illuminate\Support\Facades\Route::currentRouteName()=='rank' || \Illuminate\Support\Facades\Route::currentRouteName()=='keyword-extend') fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  182. aria-hidden="true"></i>
  183. <ul>
  184. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='rank')class="active"@endif>
  185. <a href="{{url('admin/rank/site/'.$siteId.'/keyword')}}">关键词排名</a>
  186. </li>
  187. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='keyword-extend')class="active"@endif>
  188. <a href="{{url('admin/keyword-extend/sites/'.$siteId)}}">关键词拓展</a>
  189. </li>
  190. </ul>
  191. </li>
  192. @endHasAuth
  193. @php
  194. $siteRecord=\App\Http\Models\Site::query()->select(['contract_ids'])->find($siteId);
  195. $hasContractIds=$siteRecord->contract_ids??[];
  196. @endphp
  197. {{--如果服务项目中没有外贸建站则不显示--}}
  198. @if(in_array("1",$hasContractIds))
  199. @hasAuth('sites-inquires-view')
  200. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='inquire')class="active"@endif>
  201. <a href="{{url('admin/site/'.$siteId.'/inquires')}}"><i
  202. class="fa fa-sitemap"></i>询盘管理</a></li>
  203. @endHasAuth
  204. @endif
  205. @hasAuth('sites-report-view')
  206. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='report'|| \Illuminate\Support\Facades\Route::currentRouteName()=='report-extend'|| \Illuminate\Support\Facades\Route::currentRouteName()=='promote-report'||\Illuminate\Support\Facades\Route::currentRouteName()=='promote-year') class="on" @endif>
  207. <a href="javascript:">
  208. <i class="fa fa-file-pdf-o"></i>报表</a>
  209. <i class="@if(\Illuminate\Support\Facades\Route::currentRouteName()=='report' || \Illuminate\Support\Facades\Route::currentRouteName()=='report-extend' || \Illuminate\Support\Facades\Route::currentRouteName()=='promote-report'|| \Illuminate\Support\Facades\Route::currentRouteName()=='promote-year') fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  210. aria-hidden="true"></i>
  211. <ul>
  212. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='report-extend')class="active"@endif>
  213. <a href="{{url('admin/site/'.$siteId.'/report/extend')}}">月报扩展</a>
  214. </li>
  215. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='promote-report')class="active"@endif>
  216. <a href="{{url('admin/promote-report/sites/'.$siteId)}}">推广月报</a>
  217. </li>
  218. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='promote-year')class="active"@endif>
  219. <a href="{{url('admin/promote-year/sites/'.$siteId)}}"> 推广年报</a>
  220. </li>
  221. </ul>
  222. </li>
  223. @endHasAuth
  224. @php $authUser=auth()->user(); @endphp
  225. @if($authUser->is_super||in_array($authUser->role_id,[\App\Http\Models\Role::TYPE_PROPAGANDA,7,18,24,26]))
  226. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='social-publish'|| \Illuminate\Support\Facades\Route::currentRouteName()=='hootsuite-history') class="on" @endif>
  227. <a href="javascript:">
  228. <i class="fa fa-twitter"></i>社交</a>
  229. <i class="@if(\Illuminate\Support\Facades\Route::currentRouteName()=='social-publish'|| \Illuminate\Support\Facades\Route::currentRouteName()=='hootsuite-history') fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  230. aria-hidden="true"></i>
  231. <ul>
  232. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='social-publish')class="active"@endif>
  233. <a href="{{url('admin/sites/'.$siteId.'/social-publish')}}">社交发布</a>
  234. </li>
  235. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='hootsuite-history')class="active"@endif>
  236. <a href="{{url('admin/sites/'.$siteId.'/hootsuite-history')}}">hootsuite记录</a>
  237. </li>
  238. </ul>
  239. </li>
  240. @endif
  241. <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['bqProcess','bqTraffic']) ) class="on" @endif>
  242. <a href="javascript:">
  243. <i class="fa fa-star"></i>百千</a>
  244. <i class="@if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['bqProcess','bqTraffic'])) fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  245. aria-hidden="true"></i>
  246. <ul>
  247. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='bqProcess')class="active"@endif>
  248. <a href="{{url('admin/bqTraffic/bqProcess/'.$siteId)}}">
  249. {{--<i class="fa fa-sliders"></i>--}}百千进度</a>
  250. </li>
  251. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='bqTraffic')class="active"@endif>
  252. <a href="{{url('admin/bqTraffic/sites/'.$siteId)}}">
  253. {{--<i class="fa fa-adn"></i>--}}百千流量监控</a>
  254. </li>
  255. </ul>
  256. </li>
  257. <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['flow','flow-tpl','flow-plan','client-data']) ) class="on" @endif>
  258. <a href="javascript:">
  259. <i class="fa fa-html5"></i>建站流程</a>
  260. <i class="@if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['flow','flow-tpl','flow-plan','client-data'])) fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  261. aria-hidden="true"></i>
  262. <ul>
  263. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='flow') class="active"@endif>
  264. <a href="{{url('admin/flow/sites/'.$siteId)}}">
  265. 新版流程</a>
  266. </li>
  267. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=="flow-plan")class="active"@endif>
  268. <a href="{{url('admin/flow-plan/sites/'.$siteId)}}">{{--<i
  269. class="fa fa-calendar"></i>--}}流程规划</a>
  270. </li>
  271. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='siteConstructionProcess')class="active"@endif>
  272. <a target="_blank"
  273. href="{{url('admin/flow/siteConstructionProcess/'.$siteId.'/type/0')}}"> {{--<i
  274. class="fa fa-table"></i>--}}建站流程2.0</a>
  275. </li>
  276. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='client-data')class="active"@endif>
  277. <a href="{{url('admin/flow/clientData/'.$siteId)}}">
  278. 上传设置</a>
  279. </li>
  280. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='clientDataUpload')class="active"@endif>
  281. <a target="_blank" href="{{url('admin/flow/clientDataUpload/'.$siteId.'/0')}}">
  282. 客户文件</a>
  283. </li>
  284. {{--<li @if(\Illuminate\Support\Facades\Route::currentRouteName()=="flow-extension")class="active"@endif>
  285. <a href="{{url('admin/flow-extension/sites/'.$siteId)}}">逾期原因分析</a>
  286. </li>--}}
  287. </ul>
  288. </li>
  289. <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['work-task','optimizationProcess']) ) class="on" @endif>
  290. <a href="javascript:">
  291. <i class="fa fa-book"></i>工作记录</a>
  292. <i class="@if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['work-task','optimizationProcess'])) fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  293. aria-hidden="true"></i>
  294. <ul>
  295. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='work-task')class="active"@endif>
  296. <a href="{{url('admin/work-task/sites/'.$siteId)}}">
  297. 客服工作</a>
  298. </li>
  299. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='optimizationProcess')class="active"@endif>
  300. <a href="{{url('admin/bqTraffic/optimizationProcess/'.$siteId)}}">
  301. 优化工作</a>
  302. </li>
  303. </ul>
  304. </li>
  305. <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['witness-project-renew','witness-project-introduce']) ) class="on" @endif>
  306. <a href="javascript:">
  307. <i class="fa fa-handshake-o"></i>见证人计划</a>
  308. <i class="@if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['witness-project-renew','witness-project-introduce'])) fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
  309. aria-hidden="true"></i>
  310. <ul>
  311. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='witness-project-renew')class="active"@endif>
  312. <a href="{{url('admin/witness-project/renew/'.$siteId)}}">
  313. 续费礼品</a>
  314. </li>
  315. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='witness-project-introduce')class="active"@endif>
  316. <a href="{{url('admin/witness-project/introduce/'.$siteId)}}">
  317. 转介绍礼品</a>
  318. </li>
  319. </ul>
  320. </li>
  321. @php
  322. $count = \App\Http\Models\NotFound::query()->where('site_id', $siteId)
  323. ->where('status', 404)
  324. ->where('url', 'NOT LIKE', '%javascript:%')
  325. ->where('url', 'NOT LIKE', '%tel:%')
  326. ->where('url', 'NOT LIKE', '%mailto:%')
  327. ->where('url', 'NOT LIKE', '%$%')
  328. ->where('url', 'NOT LIKE', '%skype%')
  329. ->where('url', 'NOT LIKE', '%whatsapp%')
  330. ->count()??0;
  331. @endphp
  332. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='notFound')class="active"@endif>
  333. <a href="{{url('admin/flow/notFound/'.$siteId)}}"> <i class="fa fa-globe"></i>404页面
  334. @if(!empty($count))<sup class="badge my-msg-num"
  335. style="padding:2px 5px; background:#C00">{{$count}}</sup>@endif
  336. </a>
  337. </li>
  338. @php
  339. $isStencil=\App\Http\Models\Site::query()->where('id',$siteId)->value('is_stencil');
  340. @endphp
  341. @if(!empty($isStencil))
  342. <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='advertise-index')class="active"@endif>
  343. <a href="{{url('admin/advertise/index/'.$siteId)}}"><i class="fa fa-github-alt"
  344. aria-hidden="true"></i>广告设置</a>
  345. </li>
  346. <li>
  347. <a target="_blank" href="{{url('admin/stencil/index/'.$siteId)}}"><i class="fa fa-file-text-o"
  348. aria-hidden="true"></i>页面管理</a>
  349. </li>
  350. <li>
  351. <a target="_blank" href="{{url('admin/tpl/index/'.$siteId)}}"><i class="fa fa-files-o"
  352. aria-hidden="true"></i>模版管理</a>
  353. </li>
  354. @endif
  355. </ul>
  356. </div>
  357. </div>
  358. <div class="col-sm-10 ht-rights">
  359. <div class="tabs-right">
  360. <div
  361. class="tab-content-boxs @if(\Illuminate\Support\Facades\Route::currentRouteName()=='process') ons @endif">
  362. {{--<button class="btn btn-warning closeLayer" type="button"--}}
  363. {{--style="position: fixed;top: 30px;right: 10px;z-index: 1">关闭页面--}}
  364. {{--</button>--}}
  365. {{--<div class="ibox-content">--}}
  366. @yield('right')
  367. {{--</div>--}}
  368. </div>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. </div>
  374. </body>
  375. @endsection
  376. @section('footer')
  377. <script>
  378. $(".nav-tabs-boxs a").click(function () {
  379. layer.load();
  380. });
  381. $('.tabs-left ul li').click(function (e) {
  382. if ($(this).children('ul') && e.target.parentElement == e.currentTarget) {
  383. $('.layui-layer-shade,.layui-layer-loading').hide();
  384. if ($(this).find('.toggle-x').hasClass('fa-angle-right')) {
  385. $(this).find('.toggle-x').addClass('fa-angle-down').removeClass('fa-angle-right');
  386. $(this).find('.toggle-x').siblings('ul').slideDown();
  387. } else {
  388. $(this).find('.toggle-x').addClass('fa-angle-right').removeClass('fa-angle-down');
  389. $(this).find('.toggle-x').siblings('ul').slideUp();
  390. }
  391. }
  392. })
  393. </script>
  394. @yield('footer_extend')
  395. @endsection