detail.blade.php 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  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. <div class="row">
  7. <div class="col-xs-12">
  8. <div class="table-responsive">
  9. <label for="">订单信息</label>
  10. <table class="table table-bordered text-center">
  11. <tbody>
  12. <tr>
  13. <th>下单用户</th>
  14. <th>收货地址</th>
  15. </tr>
  16. <tr>
  17. <td> {{$order['custom_name']}} </td>
  18. <td> {{$orderAddr['contact_name']}} {{$orderAddr['contact_phone']}} {{$orderAddr['contact_province']}}/{{$orderAddr['contact_city']}}/{{$orderAddr['contact_area']}}/{{$orderAddr['contact_addr']}} {{$orderAddr['contact_shop']}} </td>
  19. </tr>
  20. </tbody>
  21. </table>
  22. <table class="table table-bordered text-center">
  23. <tbody>
  24. <tr>
  25. <th>订单编号</th>
  26. <th>下单时间</th>
  27. <th>订单状态</th>
  28. </tr>
  29. <tr>
  30. <td> {{$order['order_code']}} </td>
  31. <td> {{date('Y-m-d H:i:s',$order['insert_time'])}} </td>
  32. <td> {{$order['state']}} </td>
  33. </tr>
  34. </tbody>
  35. </table>
  36. </div>
  37. <div class="table-responsive">
  38. <label for="">商品列表</label>
  39. <table class="table table-striped table-bordered text-center table-hover">
  40. <thead>
  41. <tr>
  42. <th>产品编码</th>
  43. <th>产品名称</th>
  44. <th>产品规格</th>
  45. <th>购买数量</th>
  46. <th>产品价格</th>
  47. </tr>
  48. </thead>
  49. <tbody>
  50. @foreach ($orderItems as $a)
  51. <tr class="active">
  52. <td> @if($a['is_rebate']) 【赠品】 @endif {{$a['product_code']}}</td>
  53. <td>{{$a['product_name']}}</td>
  54. <td>{{$a['product_spec']}}</td>
  55. <td>{{$a['buy_num']}}</td>
  56. <td>{{$a['pay_total']}}</td>
  57. </tr>
  58. @endforeach
  59. </tbody>
  60. </table>
  61. <table class="table table-striped table-bordered text-center table-hover">
  62. <tbody>
  63. <tr>
  64. <th style="text-align: right;">
  65. <p>订单总价: {{$order['price_total']}}</p>
  66. <p>优惠扣减: {{$order['coupon_total']}}</p>
  67. <p>订单金额: {{$order['pay_total']}}</p>
  68. </th>
  69. </tr>
  70. </tbody>
  71. </table>
  72. </div>
  73. </div>
  74. </div>
  75. <div class="row">
  76. <div class="col-xs-12">
  77. <div class="table-responsive">
  78. <label for="">回执审核</label>
  79. <table class="table table-bordered text-center">
  80. <tbody>
  81. <tr>
  82. <th>回执图片</th>
  83. <th>提交时间</th>
  84. <th>审核状态</th>
  85. <th>备注</th>
  86. <th>修改时间</th>
  87. <th>操作</th>
  88. </tr>
  89. @foreach ($orderReceipt as $a)
  90. <tr>
  91. <td> <img src="{{$a['image']}}" height="100"> </td>
  92. <td> {{date('Y-m-d H:i:s',$a['insert_time'])}} </td>
  93. <td> {{$a['status'] == 1 ? '通过': ( $a['status'] == 2?'不通过':'待审核')}} </td>
  94. <td> {{$a['remark']}} </td>
  95. <td> {{date('Y-m-d H:i:s',$a['update_time'])}} </td>
  96. <td>
  97. @if( !$a['status'] )
  98. @if( check_auth('admin/orders_receipt/refuse') )
  99. <a class="modal_show btn btn-sm btn-danger" href="javascript:;" data-url="{{url('admin/orders_receipt/refuse?'.http_build_query(['id'=>$a['id'],'status'=>2]))}}" title="不通过">
  100. 不通过
  101. </a>
  102. @endif
  103. @if( check_auth('admin/orders_receipt/allow') )
  104. <a class="modal_show btn btn-sm btn-success" href="javascript:;" data-url="{{url('admin/orders_receipt/allow?'.http_build_query(['id'=>$a['id'],'status'=>1]))}}" title="通过">
  105. 通过
  106. </a>
  107. @endif
  108. @endif
  109. </td>
  110. </tr>
  111. @endforeach
  112. </tbody>
  113. </table>
  114. </div>
  115. </div>
  116. </div>
  117. <!-- Modal -->
  118. <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  119. <div class="modal-dialog" role="document">
  120. <div class="modal-content">
  121. <div class="modal-header">
  122. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
  123. <h4 class="modal-title" id="myModalLabel"></h4>
  124. </div>
  125. <div class="modal-body"></div>
  126. <div class="modal-footer"></div>
  127. </div>
  128. </div>
  129. </div>
  130. @endsection