index.blade.php 3.5 KB

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