123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458 |
- @extends('admin/layout')
- @section('header')
- <link rel="stylesheet" href="{{url('css/admin/project/side.css')}}">
- @yield('header_extend')
- <style>
- .tabs-left {
- overflow: auto;
- width: 16.6666%;
- position: fixed;
- left: 0;
- top: 0;
- }
- .tabs-left ul li.active {
- background: #009688;
- }
- .tabs-left ul li.on ul {
- display: block;
- }
- .btn-primary {
- background: #009688;
- border-color: #009688;
- }
- .badge-warning, .label-warning {
- background: #009688 !important;
- }
- .tabs-left ul li {
- position: relative;
- }
- .tabs-left ul li a {
- font-size: 16px;
- display: inline-block;
- }
- .tabs-left ul li i.toggle-x {
- right: 15px;
- left: auto;
- cursor: pointer;
- }
- .tabs-left ul li i {
- font-size: 16px;
- }
- .tabs-left ul li ul li a {
- color: #333;
- font-size: 14px;
- }
- .tabs-left ul li ul li a.cur {
- background: #009688;
- color: #fff;
- }
- .tabs-left ul li ul {
- display: none;
- }
- /* .btn-info,.btn-success,.btn-warning{
- background: #009688 !important;
- border-color: #009688 !important;
- color: #fff;
- }
- .btn-info a, .btn-success a, .btn-warning a{
- color: #fff;
- } */
- .btn-primary, .btn-info, .btn-warning {
- background: #f3f3f3 !important;
- border-color: #e6e6e6 !important;
- color: #656565 !important;
- outline: none;
- }
- .btn-primary:hover, .btn-info:hover, .btn-warning:hover {
- background: #009688 !important;
- border-color: #009688 !important;
- color: #fff !important;
- }
- .page-tabs a.active {
- background: #009688 !important;
- }
- .input-group .form-control:focus, .input-group .single-line:focus {
- border-color: #009688 !important;
- }
- .input-group .form-control:focus {
- border-color: #009688 !important;
- }
- .ht-lefts {
- width: 16.6666% !important;
- float: left;
- }
- .ht-rights {
- width: 83.3333% !important;
- float: right;
- }
- @media screen and (max-width: 640px) {
- .ht-rights {
- width: 100% !important;
- }
- .ht-lefts {
- width: 100% !important;
- float: left;
- }
- }
- .badge {
- display: inline-block;
- min-width: 10px;
- font-size: 12px;
- font-weight: 700;
- line-height: 1;
- color: #fff;
- text-align: center;
- white-space: nowrap;
- vertical-align: middle;
- border-radius: 10px;
- padding: 2px 5px;
- background: #C00;
- top: -1px;
- margin-left: 10px;
- position: relative;
- }
- </style>
- @endsection
- @section('content')
- <body class="gray-bg">
- <div class="wrapper wrapper-content animated fadeIn">
- <div class="col-sm-12">
- <div class="tabs-container fix">
- <div class="col-sm-2 ht-lefts">
- <div class="tabs-left">
- <ul class="nav-tabs-boxs">
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='overview')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/overview')}}"><i
- class="fa fa-dedent"></i>项目概况</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='customer')class="active"@endif>
- <a href="{{url('admin/sites/' .$siteId .'/customer')}}"> <i
- class="fa fa-street-view"></i>客户信息</a>
- </li>
- @hasAuth('sites-articles-view')
- <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>
- <a href="javascript:">
- <i class="fa fa-file-word-o"></i>软文</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-overview')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/articles-overview')}}">软文概况</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/articles')}}">软文管理</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-find')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/articles-find')}}">软文查找</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='article-note')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/articles-note')}}">软文规划表
- </a>
- </li>
- </ul>
- </li>
- @endHasAuth
- @hasAuth('sites-links-view')
- <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>
- <a href="javascript:">
- <i class="fa fa-link "></i>外链</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link')class="active"@endif>
- <a href="{{url('admin/link/sites/'.$siteId.'/tasks')}}">外链管理</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-count')class="active"@endif>
- <a href="{{url('admin/link/sites/'.$siteId.'/link-count')}}">外链统计</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-url')class="active"@endif>
- <a href="{{url('admin/link/sites/'.$siteId.'/link-url')}}">外链地址</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='link-note')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/link-note')}}">外链备注</a>
- </li>
- </ul>
- </li>
- @endHasAuth
- @hasAuth('sites-rank-view')
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='rank' || \Illuminate\Support\Facades\Route::currentRouteName()=='keyword-extend') class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-line-chart"></i>关键词</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='rank')class="active"@endif>
- <a href="{{url('admin/rank/site/'.$siteId.'/keyword')}}">关键词排名</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='keyword-extend')class="active"@endif>
- <a href="{{url('admin/keyword-extend/sites/'.$siteId)}}">关键词拓展</a>
- </li>
- </ul>
- </li>
- @endHasAuth
- @php
- $siteRecord=\App\Http\Models\Site::query()->select(['contract_ids'])->find($siteId);
- $hasContractIds=$siteRecord->contract_ids??[];
- @endphp
- {{--如果服务项目中没有外贸建站则不显示--}}
- @if(in_array("1",$hasContractIds))
- @hasAuth('sites-inquires-view')
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='inquire')class="active"@endif>
- <a href="{{url('admin/site/'.$siteId.'/inquires')}}"><i
- class="fa fa-sitemap"></i>询盘管理</a></li>
- @endHasAuth
- @endif
- @hasAuth('sites-report-view')
- <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>
- <a href="javascript:">
- <i class="fa fa-file-pdf-o"></i>报表</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='report-extend')class="active"@endif>
- <a href="{{url('admin/site/'.$siteId.'/report/extend')}}">月报扩展</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='promote-report')class="active"@endif>
- <a href="{{url('admin/promote-report/sites/'.$siteId)}}">推广月报</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='promote-year')class="active"@endif>
- <a href="{{url('admin/promote-year/sites/'.$siteId)}}"> 推广年报</a>
- </li>
- </ul>
- </li>
- @endHasAuth
- @php $authUser=auth()->user(); @endphp
- @if($authUser->is_super||in_array($authUser->role_id,[\App\Http\Models\Role::TYPE_PROPAGANDA,7,18,24,26]))
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='social-publish'|| \Illuminate\Support\Facades\Route::currentRouteName()=='hootsuite-history') class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-twitter"></i>社交</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='social-publish')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/social-publish')}}">社交发布</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='hootsuite-history')class="active"@endif>
- <a href="{{url('admin/sites/'.$siteId.'/hootsuite-history')}}">hootsuite记录</a>
- </li>
- </ul>
- </li>
- @endif
- <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['bqProcess','bqTraffic']) ) class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-star"></i>百千</a>
- <i class="@if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['bqProcess','bqTraffic'])) fa fa-angle-down @else fa fa-angle-right @endif toggle-x"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='bqProcess')class="active"@endif>
- <a href="{{url('admin/bqTraffic/bqProcess/'.$siteId)}}">
- {{--<i class="fa fa-sliders"></i>--}}百千进度</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='bqTraffic')class="active"@endif>
- <a href="{{url('admin/bqTraffic/sites/'.$siteId)}}">
- {{--<i class="fa fa-adn"></i>--}}百千流量监控</a>
- </li>
- </ul>
- </li>
- <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['flow','flow-tpl','flow-plan','client-data']) ) class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-html5"></i>建站流程</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='flow') class="active"@endif>
- <a href="{{url('admin/flow/sites/'.$siteId)}}">
- 新版流程</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=="flow-plan")class="active"@endif>
- <a href="{{url('admin/flow-plan/sites/'.$siteId)}}">{{--<i
- class="fa fa-calendar"></i>--}}流程规划</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='siteConstructionProcess')class="active"@endif>
- <a target="_blank"
- href="{{url('admin/flow/siteConstructionProcess/'.$siteId.'/type/0')}}"> {{--<i
- class="fa fa-table"></i>--}}建站流程2.0</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='client-data')class="active"@endif>
- <a href="{{url('admin/flow/clientData/'.$siteId)}}">
- 上传设置</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='clientDataUpload')class="active"@endif>
- <a target="_blank" href="{{url('admin/flow/clientDataUpload/'.$siteId.'/0')}}">
- 客户文件</a>
- </li>
- {{--<li @if(\Illuminate\Support\Facades\Route::currentRouteName()=="flow-extension")class="active"@endif>
- <a href="{{url('admin/flow-extension/sites/'.$siteId)}}">逾期原因分析</a>
- </li>--}}
- </ul>
- </li>
- <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['work-task','optimizationProcess']) ) class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-book"></i>工作记录</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='work-task')class="active"@endif>
- <a href="{{url('admin/work-task/sites/'.$siteId)}}">
- 客服工作</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='optimizationProcess')class="active"@endif>
- <a href="{{url('admin/bqTraffic/optimizationProcess/'.$siteId)}}">
- 优化工作</a>
- </li>
- </ul>
- </li>
- <li @if(in_array(\Illuminate\Support\Facades\Route::currentRouteName(),['witness-project-renew','witness-project-introduce']) ) class="on" @endif>
- <a href="javascript:">
- <i class="fa fa-handshake-o"></i>见证人计划</a>
- <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"
- aria-hidden="true"></i>
- <ul>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='witness-project-renew')class="active"@endif>
- <a href="{{url('admin/witness-project/renew/'.$siteId)}}">
- 续费礼品</a>
- </li>
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='witness-project-introduce')class="active"@endif>
- <a href="{{url('admin/witness-project/introduce/'.$siteId)}}">
- 转介绍礼品</a>
- </li>
- </ul>
- </li>
- @php
- $count = \App\Http\Models\NotFound::query()->where('site_id', $siteId)
- ->where('status', 404)
- ->where('url', 'NOT LIKE', '%javascript:%')
- ->where('url', 'NOT LIKE', '%tel:%')
- ->where('url', 'NOT LIKE', '%mailto:%')
- ->where('url', 'NOT LIKE', '%$%')
- ->where('url', 'NOT LIKE', '%skype%')
- ->where('url', 'NOT LIKE', '%whatsapp%')
- ->count()??0;
- @endphp
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='notFound')class="active"@endif>
- <a href="{{url('admin/flow/notFound/'.$siteId)}}"> <i class="fa fa-globe"></i>404页面
- @if(!empty($count))<sup class="badge my-msg-num"
- style="padding:2px 5px; background:#C00">{{$count}}</sup>@endif
- </a>
- </li>
- @php
- $isStencil=\App\Http\Models\Site::query()->where('id',$siteId)->value('is_stencil');
- @endphp
- @if(!empty($isStencil))
- <li @if(\Illuminate\Support\Facades\Route::currentRouteName()=='advertise-index')class="active"@endif>
- <a href="{{url('admin/advertise/index/'.$siteId)}}"><i class="fa fa-github-alt"
- aria-hidden="true"></i>广告设置</a>
- </li>
- <li>
- <a target="_blank" href="{{url('admin/stencil/index/'.$siteId)}}"><i class="fa fa-file-text-o"
- aria-hidden="true"></i>页面管理</a>
- </li>
- <li>
- <a target="_blank" href="{{url('admin/tpl/index/'.$siteId)}}"><i class="fa fa-files-o"
- aria-hidden="true"></i>模版管理</a>
- </li>
- @endif
- </ul>
- </div>
- </div>
- <div class="col-sm-10 ht-rights">
- <div class="tabs-right">
- <div
- class="tab-content-boxs @if(\Illuminate\Support\Facades\Route::currentRouteName()=='process') ons @endif">
- {{--<button class="btn btn-warning closeLayer" type="button"--}}
- {{--style="position: fixed;top: 30px;right: 10px;z-index: 1">关闭页面--}}
- {{--</button>--}}
- {{--<div class="ibox-content">--}}
- @yield('right')
- {{--</div>--}}
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- @endsection
- @section('footer')
- <script>
- $(".nav-tabs-boxs a").click(function () {
- layer.load();
- });
- $('.tabs-left ul li').click(function (e) {
- if ($(this).children('ul') && e.target.parentElement == e.currentTarget) {
- $('.layui-layer-shade,.layui-layer-loading').hide();
- if ($(this).find('.toggle-x').hasClass('fa-angle-right')) {
- $(this).find('.toggle-x').addClass('fa-angle-down').removeClass('fa-angle-right');
- $(this).find('.toggle-x').siblings('ul').slideDown();
- } else {
- $(this).find('.toggle-x').addClass('fa-angle-right').removeClass('fa-angle-down');
- $(this).find('.toggle-x').siblings('ul').slideUp();
- }
- }
- })
- </script>
- @yield('footer_extend')
- @endsection
|