index.blade.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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="code" value="{{request('code','')}}" placeholder="请输入活动编码" />
  9. </div>
  10. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" 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-2 col-sm-2 col-xs-2" 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. <option value="3" @if (request('status') === '4' ) selected="selected" @endif >待支付</option>
  24. </select>
  25. </div>
  26. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-2" style="margin-right: 2px;">
  27. <input type="date" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入创建时间查询" />
  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="end_time" value="{{request('end_time','')}}" placeholder="请输入结束查询" />
  31. </div>
  32. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  33. <a href="{{url('admin/regiment/index')}}" class="btn btn-sm btn-default" >重置</a>
  34. </form>
  35. <div class="row">
  36. <div class="col-xs-12">
  37. <div class="table-responsive">
  38. <table class="table table-striped table-bordered table-hover">
  39. <thead>
  40. <tr>
  41. <th>团单ID</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>
  65. @if( $a['status'] == 1 )
  66. 拼团中
  67. @endif
  68. @if( $a['status'] == 2 )
  69. 拼团失败
  70. @endif
  71. @if( $a['status'] == 3 )
  72. 拼团成功
  73. @endif
  74. </td>
  75. <td>{{date('Y/m/d H:i:s',$a['start_time'])}}</td>
  76. <td>{{date('Y/m/d H:i:s',$a['end_time'])}}</td>
  77. <td> {{date('Y/m/d H:i:s',$a['update_time'])}}</td>
  78. </tr>
  79. @endforeach
  80. <tr>
  81. <td colspan="20" class="page">{{$list->render()}}</td>
  82. </tr>
  83. <tr>
  84. <td colspan="20">总计 {{$list->total()}} 个商店</td>
  85. </tr>
  86. </tbody>
  87. </table>
  88. </div>
  89. </div>
  90. </div>
  91. @endsection