| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185 | @extends('admin/layout')@section('content')    <body class="gray-bg">    <div class="wrapper wrapper-content">        <div class="row">            <div class="col-sm-12">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <a class="label label-info pull-right" onclick="units.clearCache()">清除缓存</a>                        <h5>最新项目列表</h5>                    </div>                    <div class="ibox-content">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>公司名称</th>                                <th>域名</th>                                <th>合同时间</th>                                <th>合作项目</th>                                {{--<th style="text-align: center">关键词排名</th>--}}                                {{--<th style="text-align: center">文章数</th>--}}                                {{--<th style="text-align: center">外链数</th>--}}                                {{--<th>到期时间</th>--}}                                <th>下单时间</th>                                <th>引擎力顾问</th>                            </tr>                            </thead>                            <tbody>                            @foreach($last5Sites as $site)                                <tr>                                    <td>                                        <span class="label label-warning">{{$site->cn_title}}</span>                                    </td>                                    <td>{{$site->domain}}</td>                                    <td><i class="fa fa-clock-o"></i> {{$site->order_at}}</td>                                    <td>{{$site->contractsTitle}}</td>                                    {{--<td>--}}                                    {{--<small class="label label-default block">--}}                                    {{--首页:{{$site->keywords->top10??'未获取'}}</small>--}}                                    {{--<small class="label label-default block" style="margin: 2px 0;">--}}                                    {{--前三页:{{$site->keywords->top30??'未获取'}}</small>--}}                                    {{--<small class="label label-default block">--}}                                    {{--前十页:{{$site->keywords->top100??'未获取'}}</small>--}}                                    {{--</td>--}}                                    {{--<td style="text-align: center">{{$site->articles_count}}</td>--}}                                    {{--<td style="text-align: center">{{$site->link_tasks_count}}</td>--}}                                    {{--<td>--}}                                    {{--@if($site->expired_time)--}}                                    {{--<i class="fa fa-clock-o"></i> {{date('Y-m-d H:i:s',$site->expired_time)}}--}}                                    {{--<br>--}}                                    {{--@if(time()>strtotime('-2 month',$site->expired_time))--}}                                    {{--<a onclick="units.renewal()" class="label label-primary">立即续费</a>--}}                                    {{--<a onclick="units.contactService('{{json_encode($site->serverUsersArray)}}','{{$site->id}}')"--}}                                    {{--class="label label-info">联系客服</a>--}}                                    {{--@endif--}}                                    {{--@endif--}}                                    {{--</td>--}}                                    <td>{{$site->order_at}}</td>                                    <th>                                        @foreach($site->managesInfo as $info)                                            <small class="label label-default">                                                {{$info->nickname}}{{$info->telephone}}                                            </small>                                        @endforeach                                    </th>                                </tr>                            @endforeach                            </tbody>                        </table>                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>域名即将到期</h5>                    </div>                    <div class="ibox-content">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>域名</th>                                <th>站点</th>                                <th>到期日期</th>                            </tr>                            </thead>                            <tbody>                            @foreach($domainExpiredSites as $item)                                <tr>                                    <td>                                        <small>{{$item->domain}}</small>                                    </td>                                    <td>{{$item->cn_title}}</td>                                    <td><i class="fa fa-clock-o"></i> {{$item->domain_expired_date}}</td>                                </tr>                            @endforeach                            </tbody>                        </table>                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>证书即将到期</h5>                    </div>                    <div class="ibox-content">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>域名</th>                                <th>站点</th>                                <th>到期日期</th>                            </tr>                            </thead>                            <tbody>                            @foreach($certExpiredSites as $item)                                <tr>                                    <td>                                        <small>{{$item->domain}}</small>                                    </td>                                    <td>{{$item->cn_title}}</td>                                    <td><i class="fa fa-clock-o"></i> {{$item->cert_expired_date}}</td>                                </tr>                            @endforeach                            </tbody>                        </table>                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-12">                <div class="ibox float-e-margins" style="background: #fff;">                    <div class="ibox-title">                        <h5>百千计划</h5>                    </div>                    <div class="ibox-content">                        <div class="row">                            @foreach($masterMeterTraffics as $key=>$items)                                <div class="col-sm-4">                                    <table class="table table-hover no-margins">                                        {{--<thead>--}}                                        {{--<tr>--}}                                        {{--<th>域名</th>--}}                                        {{--<th>流量</th>--}}                                        {{--<th>询盘量</th>--}}                                        {{--<th>首页量</th>--}}                                        {{--</tr>--}}                                        {{--</thead>--}}                                        <tbody>                                        <tr>                                            <td colspan="4" align="center"                                                style="background: #e5f2fb;color: #2994e4;border-color: #2994e4;">                                                <span style="font-weight: bold;font-size: 14px">月均流量{{$key}}以上 个数:{{count($items)}}</span>                                            </td>                                        </tr>                                        @if(!$items)                                            <tr>                                                <td colspan="4" align="center">                                                    <span>无</span>                                                </td>                                            </tr>                                        @endif                                        @foreach($items as $key=>$item)                                            @if($key==0)                                                <tr>                                                    <th>域名</th>                                                    <th>流量(点击数)</th>                                                    <th>询盘量</th>                                                    <th>首页量</th>                                                </tr>                                            @endif                                            <tr class="@if($key > 5)tr-lists hide @endif">                                                <th><span title="{{$item['cn_title']}}">{{$item['domain']}}</span></th>                                                <th>{{$item['clicks']}}</th>                                                <th>{{$item['inquire']}}</th>                                                <th>{{$item['top10']}}</th>                                            </tr>                                        @endforeach                                        </tbody>                                    </table>                                    @if($key > 5)                                        <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                            <i class="fa fa-angle-double-down" aria-hidden="true"                                               style="font-size: 20px;"></i>                                        </div>                                    @endif                                </div>                            @endforeach                        </div>                    </div>                </div>            </div>            {{--<div class="col-sm-3">--}}            {{--<div class="ibox float-e-margins">--}}            {{--<div class="ibox-title">--}}            {{--<h5>月均流量300以上</h5>--}}            {{--</div>--}}            {{--<div class="ibox-content">--}}            {{--<table class="table table-hover no-margins">--}}            {{--<thead>--}}            {{--<tr>--}}            {{--<th>域名</th>--}}            {{--<th>站点</th>--}}            {{--<th>流量</th>--}}            {{--</tr>--}}            {{--</thead>--}}            {{--<tbody>--}}            {{--@foreach($masterMeterTraffics[300] as $item)--}}            {{--<tr>--}}            {{--<td>--}}            {{--<small>{{$item['domain']}}</small>--}}            {{--</td>--}}            {{--<td>{{$item['cn_title']}}</td>--}}            {{--<td> {{$item['traffic']}}</td>--}}            {{--</tr>--}}            {{--@endforeach--}}            {{--</tbody>--}}            {{--</table>--}}            {{--</div>--}}            {{--</div>--}}            {{--</div>--}}            {{--<div class="col-sm-3">--}}            {{--<div class="ibox float-e-margins">--}}            {{--<div class="ibox-title">--}}            {{--<h5>月均流量500以上</h5>--}}            {{--</div>--}}            {{--<div class="ibox-content">--}}            {{--<table class="table table-hover no-margins">--}}            {{--<thead>--}}            {{--<tr>--}}            {{--<th>域名</th>--}}            {{--<th>站点</th>--}}            {{--<th>流量</th>--}}            {{--</tr>--}}            {{--</thead>--}}            {{--<tbody>--}}            {{--@foreach($masterMeterTraffics[500] as $item)--}}            {{--<tr>--}}            {{--<td>--}}            {{--<small>{{$item['domain']}}</small>--}}            {{--</td>--}}            {{--<td>{{$item['cn_title']}}</td>--}}            {{--<td> {{$item['traffic']}}</td>--}}            {{--</tr>--}}            {{--<br>--}}            {{--@endforeach--}}            {{--</tbody>--}}            {{--</table>--}}            {{--</div>--}}            {{--</div>--}}            {{--</div>--}}            {{--<div class="col-sm-3">--}}            {{--<div class="ibox float-e-margins">--}}            {{--<div class="ibox-title">--}}            {{--<h5>月均流量1000以上</h5>--}}            {{--</div>--}}            {{--<div class="ibox-content">--}}            {{--<table class="table table-hover no-margins">--}}            {{--<thead>--}}            {{--<tr>--}}            {{--<th>域名</th>--}}            {{--<th>站点</th>--}}            {{--<th>流量</th>--}}            {{--</tr>--}}            {{--</thead>--}}            {{--<tbody>--}}            {{--@foreach($masterMeterTraffics[1000] as $item)--}}            {{--<tr>--}}            {{--<td>--}}            {{--<small>{{$item['domain']}}</small>--}}            {{--</td>--}}            {{--<td>{{$item['cn_title']}}</td>--}}            {{--<td> {{$item['traffic']}}</td>--}}            {{--</tr>--}}            {{--@endforeach--}}            {{--</tbody>--}}            {{--</table>--}}            {{--</div>--}}            {{--</div>--}}            {{--</div>--}}        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>外链趋势图</h5>                    </div>                    <div class="ibox-content">                        <div id="linksLine" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>项目类型趋势图</h5>                    </div>                    <div class="ibox-content">                        <div id="siteStatus" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>项目类型饼图</h5>                    </div>                    <div class="ibox-content">                        <div id="siteStatusPie" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>行业项目饼图</h5>                    </div>                    <div class="ibox-content">                        <div id="businessPie" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>销售方式折线图</h5>                    </div>                    <div class="ibox-content">                        <div id="saleLine" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>类型项目饼图</h5>                    </div>                    <div class="ibox-content">                        <div id="naturePie" style="width: 100%;height: 300px;"></div>                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>达标项目列表<span style="color: red">【恭喜以下项目关键词达标,进入优化服务期】</span></h5>                        <a class="btn btn-sm btn-success" style="float: right;margin-top: -7px;"                           href="/admin/meter/index/export-reach-sites" target="_blank">下载</a>                        <input type="text" class="form-control"                               style="float: right;width: 180px;margin-top: -7px;margin-right: 5px" placeholder="筛选日期"                               id="filterReach">                    </div>                    @php $reachMore=0; @endphp                    <div class="ibox-content" style="min-height: 286px;">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>序号</th>                                <th>域名</th>                                <th>达标日期</th>                                <th>客户评分</th>                                <th>尾款</th>                            </tr>                            </thead>                            <tbody id="reachTable">                            @foreach($reachSites as $inx=>$site)                                @php $sitesProcess=$site->sitesProcess->first();@endphp                                <tr class="@if($inx>4)tr-lists hide @php $reachMore=1; @endphp  @endif">                                    <td>{{$inx+1}}</td>                                    <td>                                        <span title="{{$site->cn_title}}">{{$site->domain}}</span>                                    </td>                                    <td><i class="fa fa-clock-o"></i> {{$site->reach_at}}</td>                                    <td>{{$sitesProcess->evaluate['score']??''}}分</td>                                    <td>{{$site->sitePayment->reach??''}}元</td>                                </tr>                            @endforeach                            </tbody>                        </table>                        @if($reachMore)                            <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                <i class="fa fa-angle-double-down" aria-hidden="true" style="font-size: 20px;"></i>                            </div>                        @endif                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>建站完成<span style="color: red">【恭喜以下项目建站完成,正式进入优化实施期!】</span></h5>                        <a class="btn btn-sm btn-success" style="float: right;margin-top: -7px;"                           href="/admin/meter/index/export-build-sites" target="_blank">下载</a>                        <input type="text" class="form-control"                               style="float: right;width: 180px;margin-top: -7px;margin-right: 5px" placeholder="筛选日期 "                               id="filterBuild"                        >                    </div>                    @php $bindDoneMore=0; @endphp                    <div class="ibox-content">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>域名</th>                                <th>达标日期</th>                                <th>客户评分</th>                                <th>中期款</th>                            </tr>                            </thead>                            <tbody id="buildTable">                            @foreach($buildDoneSites as $inx=>$site)                                @php $sitesProcess=$site->sitesProcess->first();@endphp                                <tr class="@if($inx>4)tr-lists hide @php $bindDoneMore=1; @endphp  @endif">                                    <td>                                        <span title="{{$site->cn_title}}">{{$site->domain}}</span>                                    </td>                                    <td><i class="fa fa-clock-o"></i> {{$site->reach_at}}</td>                                    <td>{{$sitesProcess->evaluate['score']??''}}{{is_null($sitesProcess->evaluate['score'])?'':'分'}}</td>                                    <td>{{$site->sitePayment->done??''}}{{is_null($site->sitePayment->done)?'':'元'}}</td>                                </tr>                            @endforeach                            </tbody>                        </table>                        @if($bindDoneMore)                            <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                <i class="fa fa-angle-double-down" aria-hidden="true" style="font-size: 20px;"></i>                            </div>                        @endif                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>关键词排名急剧下降</h5>                    </div>                    @php $keywordDownMore=0; @endphp                    <div class="ibox-content">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>域名</th>                                <th>站点</th>                                <th>下降个数</th>                                <th>项目经理</th>                                <th>优化师</th>                            </tr>                            </thead>                            <tbody>                            @if($keyDropSites->isEmpty())                                <tr>                                    <td colspan="3" style="text-align: center">当前项目关键词表现正常</td>                                </tr>                            @endif                            @php $keyDropInx=0; @endphp                            @foreach($keyDropSites as $item)                                <tr class="@if($keyDropInx>4)tr-lists hide @php $keywordDownMore=1; @endphp  @endif">                                    <td>                                        <small>{{$item->domain}}</small>                                    </td>                                    <td>{{$item->cn_title}}</td>                                    <td>                                        {{$item->dropResults['nowTop10']-$item->dropResults['lastTop10']}}                                    </td>                                    <td>{{$item->managers_title}}</td>                                    <td>{{$item->optimizerTitle}}</td>                                </tr>                                @php $keyDropInx++ @endphp                            @endforeach                            </tbody>                        </table>                        @if($keywordDownMore)                            <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                <i class="fa fa-angle-double-down" aria-hidden="true" style="font-size: 20px;"></i>                            </div>                        @endif                    </div>                </div>            </div>            <div class="col-sm-6">                <div class="ibox float-e-margins">                    <div class="ibox-title">                        <h5>网址异常<span style="color: red">【以下网址当前检测异常】</span></h5>                    </div>                    @php $checkUrlMore=0; @endphp                    <div class="ibox-content" style="min-height: 286px;">                        <table class="table table-hover no-margins">                            <thead>                            <tr>                                <th>域名</th>                                <th>站点</th>                                <th>操作日期</th>                            </tr>                            </thead>                            <tbody>                            @if($urlFailed->isEmpty())                                <tr>                                    <td colspan="3" style="text-align: center">当前项目网站表现正常</td>                                </tr>                            @endif                            @foreach($urlFailed as $inx=>$item)                                <tr class="@if($inx>4)tr-lists hide @php $checkUrlMore=1; @endphp  @endif">                                    <td>                                        <small>{{$item->domain}}</small>                                    </td>                                    <td>{{$item->cn_title}}</td>                                    <td><i class="fa fa-clock-o"></i> {{$item->created_at}}</td>                                </tr>                            @endforeach                            </tbody>                        </table>                        @if($checkUrlMore)                            <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                <i class="fa fa-angle-double-down" aria-hidden="true" style="font-size: 20px;"></i>                            </div>                        @endif                    </div>                </div>            </div>        </div>        <div class="row">            <div class="col-sm-12">                <div class="row">                    <div class="col-sm-12">                        <div class="ibox" style="float: left;width: 100%;">                            <div class="ibox-title" style="float: left;width: 100%;">                                {{--<span class="label label-success pull-right">月</span>--}}                                <h5 style="float: left; line-height: 40px;marign-bottom: 0px;padding-right: 28px;">                                    关键词总量</h5>                                <h1 class="no-margins" style="float: left; line-height: 40px;">{{$keywordTotal}}</h1>                            </div>                            <div class="ibox-content hide">                                <h1 class="no-margins">{{$keywordTotal}}</h1>                                {{--<div class="stat-percent font-bold text-success">98% <i class="fa fa-bolt"></i>--}}                            </div>                            {{--<small>总收入</small>--}}                        </div>                    </div>                </div>                <div class="row">                    <div class="col-sm-12">                        <div class="ibox" style="background: #fff;">                            <div class="ibox-title">                                <h3><i class="fa fa-envelope-o"></i> 消息提醒</h3>                            </div>                            @php $messageMore=0; @endphp                            <div class="ibox-content">                                <div class="feed-activity-list">                                    <div class="row">                                        @foreach($expireSiteProcessList as $inx=>$item)                                            <div                                                class="col-sm-6 @if($inx>7)tr-lists hide  @php $messageMore=1; @endphp  @endif">                                                <div class="feed-element" style="padding-top: 15px;">                                                    <div>                                                        {{--<small class="pull-right text-navy">1月前</small>--}}                                                        <strong>流程过期</strong>                                                        <div>                                                        <span><strong>{{$item->site->cn_title??''}}</strong>项目  <strong>{{$item->process->title??''}}</strong>流程                                                            已过期请尽快处理!</span>                                                        </div>                                                        <small class="text-muted">                                                            理应截止日期:{{$item->should_end_at}}</small>                                                    </div>                                                </div>                                            </div>                                        @endforeach                                        @foreach($indexCustomerLog as $inx=>$item)                                            <div class="col-sm-6">                                                <div class="feed-element" style="padding-top: 15px;">                                                    <div>                                                        {{--<small class="pull-right text-navy">1月前</small>--}}                                                        <strong>{{$item->site_name}}客户信息修改</strong>                                                        <div>                                                            {{$item->detail}}                                                        </div>                                                        <small class="text-muted">                                                            操作日期{{$item->created_at}}                                                        </small>                                                    </div>                                                </div>                                            </div>                                        @endforeach                                    </div>                                </div>                                @if($messageMore)                                    <div class="i-boxs" style="text-align: center;padding: 10px;cursor: pointer;">                                        <i class="fa fa-angle-double-down" aria-hidden="true"                                           style="font-size: 20px;"></i>                                    </div>                                @endif                            </div>                        </div>                    </div>                </div>            </div>            {{--<div class="col-sm-8">--}}            {{--<div class="ibox float-e-margins">--}}            {{--<div class="ibox-title">--}}            {{--<h5>外链趋势图</h5>--}}            {{--</div>--}}            {{--<div class="ibox-content">--}}            {{--<div id="linksLine" style="width: 100%;height: 300px;"></div>--}}            {{--</div>--}}            {{--</div>--}}            {{--</div>--}}        </div>    </div>    <div id="renewal-text" style="display: none">        <div class="ibox-content">            <form class="form-horizontal">                <div class="form-group">                    <label class="col-sm-3 control-label">银行账号:</label>                    <div class="col-sm-8">                        <input type="text" class="form-control" title="" value="1234154563657856785687">                    </div>                </div>            </form>        </div>    </div>    {{--<div id="contact-service-text" style="display: none">--}}    {{--<div class="ibox-content">--}}    {{--<form class="form-horizontal">--}}    {{--<div class="form-group">--}}    {{--<label class="col-sm-3 control-label">客服信息:</label>--}}    {{--<div class="col-sm-8">--}}    {{--@foreach($serverUsers as $user)--}}    {{--<label class="form-control">{{$user->nickname}}-{{$user->phone}}</label>--}}    {{--@endforeach--}}    {{--</div>--}}    {{--</div>--}}    {{--<div class="form-group">--}}    {{--<label class="col-sm-3 control-label">选择服务:</label>--}}    {{--<div class="col-sm-8">--}}    {{--<select title="" class="form-control">--}}    {{--<option value="">请选择</option>--}}    {{--<option value="">升级服务</option>--}}    {{--<option value="">停止服务</option>--}}    {{--</select>--}}    {{--</div>--}}    {{--</div>--}}    {{--<div class="form-group">--}}    {{--<label class="col-sm-3 control-label">备注:</label>--}}    {{--<div class="col-sm-8">--}}    {{--<textarea rows="4" class="form-control" placeholder="备注内容"></textarea>--}}    {{--</div>--}}    {{--</div>--}}    {{--</form>--}}    {{--</div>--}}    {{--</div>--}}    </body>@endsection@section('footer')    <script src="{{asset('js/plugins/chosen/chosen.jquery.js')}}"></script>    <script src="{{asset('js/plugins/echarts/echarts.min.js')}}"></script>    <script src="{{asset('js/plugins/layDate-v5.0.9/laydate/laydate.js')}}"></script>    <script>        laydate.render({            elem: '#filterReach'            , range: true            , done: function (value, date, endDate) {                var config = {}, html = '';                config.url = '/admin/meter/index/filter-reach-sites?dateRange=' + value;                config.success = function (result) {                    $.each(result.data, function (key, item) {                        html += '<tr><td>' + (key + 1) + '</td><td>' + item.domain + '</td><td>' + item.reach_at + '</td><td>' + item.score + '</td><td>' + item.reach_payment + '</td></tr>'                    });                    console.log(html);                    $("#reachTable").html(html);                };                tips.ajax(config);            }        });        laydate.render({            elem: '#filterBuild'            , range: true            , done: function (value, date, endDate) {                var config = {}, html = '';                config.url = '/admin/meter/index/filter-build-sites?dateRange=' + value;                config.success = function (result) {                    $.each(result.data, function (key, item) {                        html += '<tr><td>' + (key + 1) + '</td><td>' + item.domain + '</td><td>' + (item.reach_at || '') + '</td><td>' + item.score + '</td><td>' + item.done_payment + '</td></tr>'                    });                    $("#buildTable").html(html);                };                tips.ajax(config);            }        });        var units = {            contactServiceText: function (serverUsers) {                var header = '        <div class="ibox-content">' +                    '            <form class="form-horizontal">' +                    '                <div class="form-group">' +                    '                    <label class="col-sm-3 control-label">客服信息:</label>' +                    '                    <div class="col-sm-8">';                if (Array.isArray(serverUsers)) {                    serverUsers.forEach(function (item) {                        header += '<label class="form-control">' + item.nickname + '-' + item.phone + '</label>';                    });                }                var footer = '</div>' +                    '                </div>' +                    '                <div class="form-group">' +                    '                    <label class="col-sm-3 control-label">选择服务:</label>' +                    '                    <div class="col-sm-8">' +                    '                        <select class="form-control" name="service_type">' +                    '                            <option value="">请选择</option>' +                    @foreach(\App\Http\Models\ServiceFeedback::TYPES_MAP as $key=>$val)                        '                            <option value="{{$key}}">{{$val}}</option>' +                    @endforeach                        '                        </select>' +                    '                    </div>' +                    '                </div>' +                    '                <div class="form-group">' +                    '                    <label class="col-sm-3 control-label">备注:</label>' +                    '                    <div class="col-sm-8">' +                    '                        <textarea rows="4" name="remark" class="form-control" placeholder="备注内容"></textarea>' +                    '                    </div>' +                    '                </div>' +                    '            </form>' +                    '        </div>';                return header + footer;            },            renewal: function () {                layer.open({                    type: 1,                    content: $("#renewal-text"),                    title: '立即续费',                    area: ['45%', '45%']                    // closeBtn: 0,                    // btn: ['确认']                });            },            contactService(serverUsersStr, siteId) {                var serverUsers = JSON.parse(serverUsersStr);                layer.open({                    type: 1,                    content: units.contactServiceText(serverUsers),                    title: '联系客服',                    area: ['45%', '45%'],                    // closeBtn: 0,                    btn: ['确认', '取消'],                    yes: function (index, layero) {                        var data = {                            service_type: $(layero).find("[name=service_type]").val(),                            remark: $(layero).find("[name=remark]").val(),                            site_id: siteId                        };                        var ajaxConfig = {                            url: '/admin/meter/service-feedback',                            type: 'post',                            data: data,                            success: function (result) {                                layer.msg('已收到您的反馈,引擎力客服会尽快与您联系', {icon: 6, time: 2000}, function () {                                    layer.close(index);                                });                            }                        };                        tips.ajax(ajaxConfig);                    }                });            },            clearCache: function () {                tips.ajax({                    url: '/admin/meter/forget-cache?which=index',                    success: function (result) {                        layer.msg(result.message, {icon: 6, time: 1000}, function () {                            window.location.reload();                        });                    }                });            }        };        // 项目情况折线图        var siteStatusLineChart = echarts.init(document.getElementById('siteStatus'));        var siteStatusLineXAxis = JSON.parse('{!! json_encode($siteStatus['xAxis']) !!}');        var siteStatusLineYAix = JSON.parse('{!! json_encode($siteStatus['yAxis']) !!}');        var siteStatusLineOption = {            tooltip: {                trigger: 'axis',                axisPointer: {                    type: 'cross',                    crossStyle: {                        color: '#999'                    }                }            },            toolbox: {                feature: {                    dataView: {show: true, readOnly: false},                    magicType: {show: true, type: ['bar', 'pie']},                    restore: {show: true},                    saveAsImage: {show: true}                }            },            legend: {                data: ['项目数']            },            xAxis: [                {                    type: 'category',                    data: siteStatusLineXAxis,                    axisPointer: {                        type: 'shadow'                    },                    splitLine: {                        show: false                    }                }            ],            yAxis: [                {                    type: 'value',                    name: '',                    min: 0,                    axisLabel: {                        formatter: '{value}'                    },                    axisLine: {                        show: false //隐藏Y轴                    }                }            ],            series: [                {                    name: '项目数',                    type: 'line',                    data: siteStatusLineYAix                }            ]        };        siteStatusLineChart.setOption(siteStatusLineOption);        //项目情况饼图        var siteStatusPieChart = echarts.init(document.getElementById('siteStatusPie'));        var siteStatusPieData = JSON.parse('{!! json_encode($siteStatus['hybrid']) !!}');        var siteStatusPieName = JSON.parse('{!! json_encode($siteStatus['xAxis']) !!}');        var siteStatusPieOption = {            tooltip: {                trigger: 'item',                formatter: "{a} <br/>{b} : {c} ({d}%)"            },            legend: {                orient: 'vertical',                left: 'left',                data: siteStatusPieName            },            series: [                {                    name: '访问来源',                    type: 'pie',                    radius: '55%',                    center: ['50%', '60%'],                    data: siteStatusPieData,                    itemStyle: {                        emphasis: {                            shadowBlur: 10,                            shadowOffsetX: 0,                            shadowColor: 'rgba(0, 0, 0, 0.5)'                        }                    }                }            ]        };        siteStatusPieChart.setOption(siteStatusPieOption);        //公司类型饼图        var naturePieChart = echarts.init(document.getElementById('naturePie'));        var naturePieData = JSON.parse('{!! json_encode($nature['hybrid']) !!}');        var naturePieName = JSON.parse('{!! json_encode($nature['name']) !!}');        var naturePieOption = {            tooltip: {                trigger: 'item',                formatter: "{a} <br/>{b} : {c} ({d}%)"            },            legend: {                orient: 'vertical',                left: 'left',                data: naturePieName            },            series: [                {                    name: '访问来源',                    type: 'pie',                    radius: '55%',                    center: ['50%', '60%'],                    data: naturePieData,                    itemStyle: {                        emphasis: {                            shadowBlur: 10,                            shadowOffsetX: 0,                            shadowColor: 'rgba(0, 0, 0, 0.5)'                        }                    }                }            ]        };        naturePieChart.setOption(naturePieOption);        //  公司行业饼图        var businessPieChart = echarts.init(document.getElementById('businessPie'));        var businessPieData = JSON.parse('{!! json_encode($business['hybrid']) !!}');        var businessPieName = JSON.parse('{!! json_encode($business['name']) !!}');        var businessPieOption = {            tooltip: {                trigger: 'item',                formatter: "{a} <br/>{b} : {c} ({d}%)"            },            legend: {                orient: 'vertical',                left: 'left',                data: businessPieName            },            series: [                {                    name: '访问来源',                    type: 'pie',                    radius: '55%',                    center: ['50%', '60%'],                    data: businessPieData,                    itemStyle: {                        emphasis: {                            shadowBlur: 10,                            shadowOffsetX: 0,                            shadowColor: 'rgba(0, 0, 0, 0.5)'                        }                    }                }            ]        };        businessPieChart.setOption(businessPieOption);        //直销/渠道 销售 折线图        var saleLineChart = echarts.init(document.getElementById('saleLine'));        var saleLineXAxis = JSON.parse('{!! json_encode($sales['xAxis']) !!}');        var channelSales = JSON.parse('{!! json_encode($sales['channelSales']) !!}');        var notChannelSales = JSON.parse('{!! json_encode($sales['notChannelSales']) !!}');        var saleLineOption = {            tooltip: {                trigger: 'axis',                axisPointer: {                    type: 'cross',                    crossStyle: {                        color: '#999'                    }                }            },            toolbox: {                feature: {                    dataView: {show: true, readOnly: false},                    magicType: {show: true, type: ['line', 'bar']},                    restore: {show: true},                    saveAsImage: {show: true}                }            },            legend: {                data: ['点击量', '访客数']            },            xAxis: [                {                    type: 'category',                    data: saleLineXAxis,                    axisPointer: {                        type: 'shadow'                    },                    splitLine: {                        show: false                    }                }            ],            yAxis: [                {                    type: 'value',                    name: '',                    min: 0,                    axisLabel: {                        formatter: '{value}'                    },                    axisLine: {                        show: false //隐藏Y轴                    }                }            ],            series: [                {                    name: '渠道销售',                    type: 'bar',                    data: channelSales                },                {                    name: '直销销售',                    type: 'line',                    data: notChannelSales                }            ]        };        saleLineChart.setOption(saleLineOption);        //外链库折线图        var linksLineChart = echarts.init(document.getElementById('linksLine'));        var linksLineXAxis = JSON.parse('{!! json_encode($linksLine['xAxis']) !!}');        var linksLineYAix = JSON.parse('{!! json_encode($linksLine['yAxis']) !!}');        var linksLineOption = {            tooltip: {                trigger: 'axis',                axisPointer: {                    type: 'cross',                    crossStyle: {                        color: '#999'                    }                }            },            toolbox: {                feature: {                    dataView: {show: true, readOnly: false},                    magicType: {show: true, type: ['bar', 'pie']},                    restore: {show: true},                    saveAsImage: {show: true}                }            },            legend: {                data: ['外链数']            },            xAxis: [                {                    type: 'category',                    data: linksLineXAxis,                    axisPointer: {                        type: 'shadow'                    },                    splitLine: {                        show: false                    }                }            ],            yAxis: [                {                    type: 'value',                    name: '',                    min: 0,                    axisLabel: {                        formatter: '{value}'                    },                    axisLine: {                        show: false //隐藏Y轴                    }                }            ],            series: [                {                    name: '外链数',                    // type: 'line',                    type: 'bar',                    data: linksLineYAix                }            ]        };        linksLineChart.setOption(linksLineOption);        window.addEventListener("resize", function (ev) {            linksLineChart.resize();            saleLineChart.resize();            businessPieChart.resize();            naturePieChart.resize();            siteStatusPieChart.resize();            siteStatusLineChart.resize()        });        $(function () {            $(".i-boxs").each(function () {                $(this).click(function () {                    if (!$(this).hasClass("ons")) {                        $(this).addClass("ons");                        $(this).siblings("table").find(".tr-lists").removeClass("hide");                        $(this).siblings(".feed-activity-list").find(".tr-lists").removeClass("hide");                        $(this).find("i").css("transform", "rotate(180deg)");                    } else {                        $(this).removeClass("ons");                        $(this).siblings("table").find(".tr-lists").addClass("hide");                        $(this).siblings(".feed-activity-list").find(".tr-lists").addClass("hide");                        $(this).find("i").css("transform", "rotate(0deg)");                    }                });            });        });    </script>@endsection
 |