index.blade.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. @extends('admin.public.base')
  2. @section('body_class')
  3. style="margin: 0 auto;width: 96%;padding: 30px 0px;"
  4. @endsection
  5. @section('content')
  6. @if(check_auth('admin/score_clockin_active/add'))
  7. <div class="page-header">
  8. <a href="{{url('admin/score_clockin_active/add')}}" class="btn btn-primary">新增</a>
  9. </div>
  10. @endif
  11. <form action="" method="get" class="form-horizontal form-line">
  12. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  13. <input type="text" class="form-control" name="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
  14. </div>
  15. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  16. <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
  17. </div>
  18. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  19. <input type="text" class="form-control" name="product_name" value="{{request('product_name','')}}" placeholder="请输入产品名称查询" />
  20. </div>
  21. <div class="form-group col col-md-1" style="margin-right: 2px;">
  22. <select name="status" class="form-control">
  23. <option value="" >状态</option>
  24. <option value="0" @if (request('status') === '1' ) selected="selected" @endif >启用</option>
  25. <option value="2" @if (request('status') === '2' ) selected="selected" @endif >停用</option>
  26. <option value="3" @if (request('status') === '3' ) selected="selected" @endif >结束</option>
  27. </select>
  28. </div>
  29. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  30. <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
  31. </div>
  32. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  33. <input type="date" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
  34. </div>
  35. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  36. <a href="{{url('admin/score_clockin_active/index')}}" class="btn btn-sm btn-default" >重置</a>
  37. </form>
  38. <div class="row">
  39. <div class="col-xs-12">
  40. <div class="table-responsive">
  41. <table class="table table-striped table-bordered table-hover">
  42. <thead>
  43. <tr>
  44. <th>团单ID</th>
  45. <th>参与活动/活动编码</th>
  46. <th>产品名称/产品编码</th>
  47. <th>发起客户昵称/发起客户编码</th>
  48. <th>拼团状态</th>
  49. <th>开始时间</th>
  50. <th>结束时间</th>
  51. <th>修改时间</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. @foreach ($list as $a)
  56. <tr>
  57. <th>{{$a['id']}}</th>
  58. <td>{{$a['active_name']}}<br/>{{$a['active_code']}}</td>
  59. <td style="white-space:pre">{{$a['product_name']}}<br/>{{$a['product_code']}}</td>
  60. <td>
  61. @if( $a['custom_uid'])
  62. {{$a['username']}}<br/>{{$a['custom_code']}}
  63. @else
  64. 商家发起
  65. @endif
  66. </td>
  67. <td>
  68. @if( $a['status'] == 1 )
  69. 拼团中
  70. @endif
  71. @if( $a['status'] == 2 )
  72. 拼团失败
  73. @endif
  74. @if( $a['status'] == 3 )
  75. 拼团成功
  76. @endif
  77. </td>
  78. <td>{{date('Y/m/d H:i:s',$a['start_time'])}}</td>
  79. <td>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
  80. <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
  81. </tr>
  82. @endforeach
  83. <tr>
  84. <td colspan="20" class="page">{{$list->render()}}</td>
  85. </tr>
  86. <tr>
  87. <td colspan="20">总计 {{$list->total()}} 个商店</td>
  88. </tr>
  89. </tbody>
  90. </table>
  91. </div>
  92. </div>
  93. </div>
  94. @endsection