123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- @extends('admin.public.base')
- @section('body_class')
- style="margin: 0 auto;width: 96%;padding: 30px 0px;"
- @endsection
- @section('content')
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <label for="">订单信息</label>
- <table class="table table-bordered text-center">
- <tbody>
- <tr>
- <th>下单用户</th>
- <th>收货地址</th>
- </tr>
- <tr>
- <td> {{$order['custom_name']}} </td>
- <td> {{$orderAddr['contact_name']}} {{$orderAddr['contact_phone']}} {{$orderAddr['contact_province']}}/{{$orderAddr['contact_city']}}/{{$orderAddr['contact_area']}}/{{$orderAddr['contact_addr']}} {{$orderAddr['contact_shop']}} </td>
- </tr>
- </tbody>
- </table>
- <table class="table table-bordered text-center">
- <tbody>
- <tr>
- <th>订单编号</th>
- <th>下单时间</th>
- <th>订单状态</th>
- </tr>
- <tr>
- <td> {{$order['order_code']}} </td>
- <td> {{date('Y-m-d H:i:s',$order['insert_time'])}} </td>
- <td> {{$order['state']}} </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div class="table-responsive">
- <label for="">商品列表</label>
- <table class="table table-striped table-bordered text-center table-hover">
- <thead>
- <tr>
- <th>产品编码</th>
- <th>产品名称</th>
- <th>产品规格</th>
- <th>购买数量</th>
- <th>产品价格</th>
- </tr>
- </thead>
- <tbody>
- @foreach ($orderItems as $a)
- <tr class="active">
- <td> @if($a['is_rebate']) 【赠品】 @endif {{$a['product_code']}}</td>
- <td>{{$a['product_name']}}</td>
- <td>{{$a['product_spec']}}</td>
- <td>{{$a['buy_num']}}</td>
- <td>{{$a['pay_total']}}</td>
- </tr>
- @endforeach
- </tbody>
- </table>
- <table class="table table-striped table-bordered text-center table-hover">
- <tbody>
- <tr>
- <th style="text-align: right;">
- <p>订单总价: {{$order['price_total']}}</p>
- <p>优惠扣减: {{$order['coupon_total']}}</p>
- <p>订单金额: {{$order['pay_total']}}</p>
- </th>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <div class="table-responsive">
- <label for="">回执审核</label>
- <table class="table table-bordered text-center">
- <tbody>
- <tr>
- <th>回执图片</th>
- <th>提交时间</th>
- <th>审核状态</th>
- <th>备注</th>
- <th>修改时间</th>
- <th>操作</th>
- </tr>
- @foreach ($orderReceipt as $a)
- <tr>
- <td> <img src="{{$a['image']}}" height="100"> </td>
- <td> {{date('Y-m-d H:i:s',$a['insert_time'])}} </td>
- <td> {{$a['status'] == 1 ? '通过': ( $a['status'] == 2?'不通过':'待审核')}} </td>
- <td> {{$a['remark']}} </td>
- <td> {{date('Y-m-d H:i:s',$a['update_time'])}} </td>
- <td>
- @if( !$a['status'] )
- @if( check_auth('admin/orders_receipt/refuse') )
- <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="不通过">
- 不通过
- </a>
- @endif
- @if( check_auth('admin/orders_receipt/allow') )
- <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="通过">
- 通过
- </a>
- @endif
- @endif
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
- </div>
- <!-- Modal -->
- <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title" id="myModalLabel"></h4>
- </div>
- <div class="modal-body"></div>
- <div class="modal-footer"></div>
- </div>
- </div>
- </div>
- @endsection
|