index.blade.php 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. </tr>
  48. </thead>
  49. <tbody>
  50. @foreach ($list as $a)
  51. <tr>
  52. <td>{{$a['is_rebate']?'【赠品】':''}}{{$a['order_code']}}</td>
  53. <td>{{$a['product_code']}}</td>
  54. <td>{{$a['custom_code']}}</td>
  55. <td>{{$a['product_name']}}</td>
  56. <td>{{$a['buy_num']}}</td>
  57. <td>{{$a['score_total']}} 积分</td>
  58. <td>{{$a['state']}}</td>
  59. <td>{{date('Y-m-d H:i:s',$a['insert_time']??0)}}</td>
  60. <td>
  61. </td>
  62. </tr>
  63. @endforeach
  64. <tr>
  65. <td colspan="20" class="page">{{$list->render()}}</td>
  66. </tr>
  67. <tr>
  68. <td colspan="20">总计 {{$list->total()}} 个 积分订单</td>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. </div>
  74. </div>
  75. @endsection