index.blade.php 3.7 KB

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