index.blade.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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-12" style="margin-right: 2px;">
  8. <input type="text" class="form-control" name="order_code" value="{{request('order_code','')}}" maxlength="13" placeholder="请输入订单编号查询" />
  9. </div>
  10. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  11. <input type="text" class="form-control" name="product_id" value="{{request('product_id','')}}" placeholder="请输入产品编码查询" />
  12. </div>
  13. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  14. <input type="text" class="form-control" name="name" value="{{request('name','')}}" placeholder="请输入产品名称查询" />
  15. </div>
  16. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" 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. </select>
  22. </div>
  23. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  24. <input type="text" class="form-control" name="start_time" value="{{request('start_time','')}}" placeholder="请输入开始时间查询" />
  25. </div>
  26. <div class="form-group col col-lg-2 col-md-2 col-sm-2 col-xs-12" style="margin-right: 2px;">
  27. <input type="text" class="form-control" name="end_time" value="{{request('end_time','')}}" placeholder="请输入结束时间查询" />
  28. </div>
  29. <input type="submit" class="btn btn-sm btn-primary" value="查询"/>
  30. <a href="{{url('admin/orders/index')}}" class="btn btn-sm btn-default" >重置</a>
  31. </form>
  32. <div class="row">
  33. <div class="col-xs-12">
  34. <div class="table-responsive">
  35. <table class="table table-striped table-bordered table-hover">
  36. <thead>
  37. <tr>
  38. <th>订单编号</th>
  39. <th>产品编码</th>
  40. <th>下单用户</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. <th>操作</th>
  50. </tr>
  51. </thead>
  52. <tbody>
  53. @foreach ($list as $a)
  54. <tr>
  55. <td>{{$a['is_rebate']?'【赠品】':''}}{{$a['order_code']}}</td>
  56. <td>{{$a['product_code']}}</td>
  57. <td>{{$a['custom_code']}}</td>
  58. <td>{{$a['product_name']}}</td>
  59. <td>{{$a['buy_num']}}</td>
  60. <td>{{$a['score_total']}} 积分</td>
  61. <td>{{$a['contact_name']}}</td>
  62. <td>{{$a['contact_phone']}}</td>
  63. <td>{{$a['contact_province']}}/{{$a['contact_city']}}/{{$a['contact_area']}}/{{$a['contact_addr']}} {{$a['contact_shop']}}</td>
  64. <td>{{$a['state']}}</td>
  65. <td>{{date('Y-m-d H:i:s',$a['insert_time']??0)}}</td>
  66. <td>
  67. </td>
  68. </tr>
  69. @endforeach
  70. <tr>
  71. <td colspan="20" class="page">{{$list->render()}}</td>
  72. </tr>
  73. <tr>
  74. <td colspan="20">总计 {{$list->total()}} 个 积分订单</td>
  75. </tr>
  76. </tbody>
  77. </table>
  78. </div>
  79. </div>
  80. </div>
  81. @endsection