admin/plugins/article/views/manager/share.blade.php

59 lines
3.4 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.base')
@section('content')
<div class="rightlist" style="margin: 0;">
<div class="panel panel-default">
<div class="panel-heading"> 数据统计 (id: {{ $id }})</div>
<div class="panel-body">
<div class="alert alert-info">
<p>文章标题:{{ $article['title'] }}</p>
<p>文章分类:{{ $article['belongs_to_category']['name'] }}</p>
<p>触发关键字:{{ $article['keyword'] }}</p>
<p>创建时间:{{ $article['created_at'] }}</p>
<p>阅读量(真实+虚拟=总数){{ $article['read_num'] }} + {{ $article['virtual_read_num'] }} = {{ $article['read_num'] + $article['virtual_read_num'] }}</p>
<p>点赞数(真实+虚拟=总数){{ $article['like_num'] }} + {{ $article['virtual_like_num'] }} = {{ $article['like_num'] + $article['virtual_like_num'] }}</p>
<p>积分累计发放数量:{{ $point_sum }} 积分</p>
<p>余额累计发放数量:{{ $bonus_sum }} </p>
</div>
<table class="table">
<thead>
<tr>
<th style="width:80px; text-align:center;">记录ID</th>
<th style="width:200px;text-align:center;">分享者</th>
<th style="width:200px; text-align:center;">点击者</th>
<th style="width:200px; text-align:center;">点击时间</th>
<th style="width:200px; text-align:center;">奖励积分</th>
<th style="width:200px; text-align:center;">奖励余额</th>
<th></th>
</tr>
</thead>
<tbody>
@if (empty($shares['data']))
<tr>
<td colspan="7" style="line-height:30px;">没有查询到记录!</td>
</tr>
@else
@foreach ($shares['data'] as $share)
<tr style="border-bottom:0px;">
<td>{{ $share['id'] }}</td>
<td>@if (!empty($share['belongs_to_share_memeber']['nickname'])) {{ $share['belongs_to_share_memeber']['nickname'] }} @else * 未更新用户信息 @endif</td>
<td>@if (!empty($share['belongs_to_click_memeber']['nickname'])) {{ $share['belongs_to_click_memeber']['nickname'] }} @else * 未更新用户信息 @endif</td>
<td style="text-align:center;">{{ date('Y-m-d H:i:s', $share['click_time']) }}</td>
<td style="text-align:center;">{{ $share['point'] }}</td>
<td style="text-align:center;">{{ $share['credit'] }}</td>
</tr>
@endforeach
@endif
</tbody>
</table>
{!! $pager !!}
</div>
<div class="panel-footer">
<a class="btn btn-default" href="{{ yzWebUrl('plugin.article.manager.article.index') }}"><i class="fa fa-reply"></i> 返回文章列表</a>
<a class="btn btn-default" href="{{ yzWebUrl('plugin.article.manager.article.log', ['id' => $id]) }}" style="margin-left:10px;"><i class="fa fa-list"></i> 查看阅读/点赞记录</a>
</div>
</div>
</div>
@endsection