log.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @extends('layouts.base')
  2. @section('content')
  3. <div class="rightlist" style="margin: 0;">
  4. <div class="panel panel-default">
  5. <div class="panel-heading"> 数据统计 (id: {{ $id }})</div>
  6. <div class="panel-body">
  7. <div class="alert alert-info">
  8. <p>文章标题:{{ $article['title'] }}</p>
  9. <p>文章分类:{{ $article['belongs_to_category']['name'] }}</p>
  10. <p>触发关键字:{{ $article['keyword'] }}</p>
  11. <p>创建时间:{{ $article['created_at'] }}</p>
  12. <p>阅读量(真实+虚拟=总数):{{ $article['read_num'] }} + {{ $article['virtual_read_num'] }} = {{ $article['read_num'] + $article['virtual_read_num'] }}</p>
  13. <p>点赞数(真实+虚拟=总数):{{ $article['like_num'] }} + {{ $article['virtual_like_num'] }} = {{ $article['like_num'] + $article['virtual_like_num'] }}</p>
  14. <p>积分累计发放数量:{{ $point_sum }} 积分</p>
  15. <p>余额累计发放数量:{{ $bonus_sum }} 元</p>
  16. </div>
  17. <table class="table">
  18. <thead>
  19. <tr>
  20. <th style="width:80px;">记录ID</th>
  21. <th style="width:300px;">会员昵称</th>
  22. <th style="width:100px; text-align:center;">阅读次数</th>
  23. <th style="width:100px; text-align:center;">点赞状态</th>
  24. <th></th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. @if (empty($logs['data']))
  29. <tr>
  30. <td colspan="7" style="line-height:30px;">没有查询到记录!</td>
  31. </tr>
  32. @else
  33. @foreach ($logs['data'] as $log)
  34. <tr style="border-bottom:0px;">
  35. <td>{{ $log['id'] }}</td>
  36. <td> @if(!empty($log['belongs_to_member']['nickname'])) {{ $log['belongs_to_member']['nickname'] }} @else * 用户未更新信息 @endif</td>
  37. <td style="text-align:center;">{{ $log['read_num'] }}</td>
  38. <td style="text-align:center;">
  39. @if ($log['liked'] == 1)
  40. <label class="label label-success">已点赞</label>
  41. @else
  42. <label class="label label-default">未点赞</label>
  43. @endif
  44. </td>
  45. <td></td>
  46. </tr>
  47. @endforeach
  48. @endif
  49. </tbody>
  50. </table>
  51. {!! $pager !!}
  52. </div>
  53. <div class="panel-footer">
  54. <a class="btn btn-default" href="{{ yzWebUrl('plugin.article.manager.article.index') }}"><i class="fa fa-reply"></i> 返回文章列表</a>
  55. <a class="btn btn-default" href="{{ yzWebUrl('plugin.article.manager.article.share', ['id' => $id]) }}" style="margin-left:10px;"><i class="fa fa-list"></i> 查看分享记录</a>
  56. </div>
  57. </div>
  58. </div>
  59. @endsection