records.blade.php 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. @extends('layouts.base')
  2. @section('title', trans('Yunshop\PointActivity::activityRecords.title'))
  3. @section('content')
  4. <div class="right-titpos">
  5. <ul class="add-snav">
  6. <li class="active"><a href="#">{{ trans('Yunshop\PointActivity::activityRecords.subtitle') }}</a></li>
  7. </ul>
  8. </div>
  9. <div class='panel panel-default'>
  10. <form action="" method="get" class="form-horizontal" id="form1">
  11. <input type="hidden" name="c" value="site"/>
  12. <input type="hidden" name="a" value="entry"/>
  13. <input type="hidden" name="m" value="yun_shop"/>
  14. <input type="hidden" name="do" value="sign" id="form_do"/>
  15. <input type="hidden" name="route" value="plugin.point-activity.Backend.Modules.Activity.Controllers.records.index" id="route"/>
  16. <div class="panel panel-info">
  17. <div class="panel-body">
  18. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  19. <div class="">
  20. <input type="text" placeholder="活动ID/活动名称" class="form-control" name="search[activity]" value="{{ $search['activity'] }}"/>
  21. </div>
  22. </div>
  23. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  24. <div class="">
  25. <input type="text" placeholder="会员ID/昵称/姓名/手机号" class="form-control" name="search[member]" value="{{ $search['member'] }}"/>
  26. </div>
  27. </div>
  28. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  29. <div class="time">
  30. <select name='search[search_time]' class='form-control'>
  31. <option value='0' @if($search['search_time']=='0') selected @endif>不搜索时间</option>
  32. <option value='1' @if($search['search_time']=='1') selected @endif>搜索时间</option>
  33. </select>
  34. </div>
  35. </div>
  36. <div class="form-group col-xs-12 col-sm-2 col-md-2 col-lg-2 ">
  37. <div class="search-select">
  38. {!! app\common\helpers\DateRange::tplFormFieldDateRange('search[time]', [
  39. 'starttime'=>date('Y-m-d H:i', strtotime($search['time']['start']) ?: strtotime('-1 month')),
  40. 'endtime'=>date('Y-m-d H:i',strtotime($search['time']['end']) ?: time()),
  41. 'start'=>0,
  42. 'end'=>0
  43. ], true) !!}
  44. </div>
  45. </div>
  46. <div class="form-group col-xs-12 col-sm-4">
  47. <input type="submit" class="btn btn-success pull-right" value="搜索">
  48. </div>
  49. </div>
  50. </div>
  51. </form>
  52. </div>
  53. <div class="w1200 m0a">
  54. <div class="rightlist">
  55. <div class="clearfix">
  56. <div class="panel panel-default">
  57. <div class="panel-heading">总数:{{ $pageList->total() }}</div>
  58. <div class="panel-body" style="margin-bottom:200px">
  59. <table class="table table-hover" style="overflow:visible">
  60. <thead class="navbar-inner">
  61. <tr>
  62. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_one') }}</th>
  63. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_two') }}</th>
  64. <th style='width:10%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_three') }}</th>
  65. <th style='width:12%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_four') }}<br>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_five') }}</th>
  66. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_seven') }}<br />{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_six') }}</th>
  67. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_nine') }}<br />{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_eight') }}</th>
  68. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_ten') }}</th>
  69. <th style='width:8%;text-align: center;'>{{ trans('Yunshop\PointActivity::activityRecords.menu.menu_eleven') }}</th>
  70. </tr>
  71. </thead>
  72. <tbody>
  73. @foreach($pageList as $key => $item)
  74. <tr style="text-align: center;">
  75. <td>
  76. {{ $item->id }}
  77. </td>
  78. <td>
  79. {{ $item->name }}
  80. </td>
  81. <td>
  82. <a href="{{ yzWebUrl('member.member.detail',['id' => $item['member_id']]) }}">
  83. <img src='{{ $item->member->avatar }}' style='width:30px;height:30px;padding:1px;border:1px solid #ccc'/>
  84. <br/>
  85. {{ $item->member->nickname ?? "未更新" }}
  86. </a>
  87. </td>
  88. <td>
  89. {{ $item->created_at }}
  90. @if($item->validity_at && $item->status == 0)
  91. <br><label class="label label-danger">有效期:{{ $item->validity_at }}</label>
  92. @endif
  93. </td>
  94. <td>
  95. {{ $item->stock }}<br><label class="label label-info">{{ $item->point }}</label>
  96. </td>
  97. <td>{{ $item->remain }}/{{ $item->total }}</td>
  98. <td>
  99. @if($item->status == 2)
  100. <label class="label label-danger">{{ $item->status_name }}</label>
  101. @elseif($item->status == 1)
  102. <label class="label label-success">{{ $item->status_name }}</label>
  103. @else
  104. <label class="label label-info">{{ $item->status_name }}</label>
  105. @endif
  106. </td>
  107. <td>
  108. <a class='btn btn-default' href="{{ yzWebUrl('plugin.point-activity.Backend.Modules.Activity.Controllers.detail.index', array('activity_id' => $item->id)) }}" style="margin-bottom: 2px">活动详情</a>
  109. </td>
  110. </tr>
  111. @endforeach
  112. </tbody>
  113. </table>
  114. {!! $page !!}
  115. </div>
  116. </div>
  117. </div>
  118. </div>
  119. </div>
  120. @endsection