index.blade.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. <form action="" method="get" class="form-horizontal form-line">
  7. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入活动名称查询" />
  9. </div>
  10. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  11. <a href="{{url('admin/regiment_record/index')}}" class="btn btn-sm btn-default" >重置</a>
  12. </form>
  13. <div class="row">
  14. <div class="col-xs-12">
  15. <div class="table-responsive">
  16. <table class="table table-striped table-bordered table-hover">
  17. <thead>
  18. <tr>
  19. <th>拼团记录ID</th>
  20. <th>团单ID</th>
  21. <th>订单编码</th>
  22. <th>客户昵称/编码</th>
  23. <th>参与活动/活动编码</th>
  24. <th>产品名称/产品编码</th>
  25. <th>发起客户昵称/发起客户编码</th>
  26. <th>拼团状态</th>
  27. <th>订单生成时间</th>
  28. </tr>
  29. </thead>
  30. <tbody>
  31. @foreach ($list as $a)
  32. <tr>
  33. <th>{{$a['id']}}</th>
  34. <th>{{$a['regiment_id']}}</th>
  35. <th>{{$a['order_code']}}</th>
  36. <th>{{$a['username']}}<br/>{{$a['custom_code']}}</th>
  37. <td>{{$a['active_name']}}<br/>{{$a['active_code']}}</td>
  38. <td style="white-space:pre">{{$a['product_name']}}<br/>{{$a['product_code']}}</td>
  39. <td>{{$a['username']}}<br/>{{$a['custom_code']}}</td>
  40. <td>
  41. @if( $a['status'] == 0 )
  42. 拼团中
  43. @endif
  44. @if( $a['status'] == 1 )
  45. 取消拼团
  46. @endif
  47. @if( $a['status'] == 2 )
  48. 拼团成功
  49. @endif
  50. @if( $a['status'] == 3 )
  51. 拼团失败
  52. @endif
  53. </td>
  54. <td> {{date('Y/m/d H:i:s',$a['insert_time'])}}</td>
  55. </tr>
  56. @endforeach
  57. <tr>
  58. <td colspan="20" class="page">{{$list->render()}}</td>
  59. </tr>
  60. <tr>
  61. <td colspan="20">总计 {{$list->total()}} 个商店</td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. </div>
  67. </div>
  68. @endsection