show.blade.php 15.6 KB
<style>
    .card-title {
        font-size: 16px!important;
        padding: 10px!important;
    }
</style>
<div class="row">
    <div class="col-md-12">
        <div class="box box-content-header">
            <div class="box-header">
                <h3 class="box-title">订单信息
                    <div class="box-tools pull-right">
                        <div class="btn-group pull-right grid-create-btn" style="margin-right: 10px">
                        </div>
                    </div>
                </h3>
            </div>
        </div>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <div class="x_panel">
            <!-- 基本信息 begin -->
            <div class="card">
{{--                <div class="card-header">--}}
{{--                    <h3 class="card-title">基本信息 <i class="fa fa-newspaper-o"></i></h3>--}}
{{--                    <!-- card tools -->--}}

{{--                    <!-- /.card-tools -->--}}
{{--                </div>--}}
                <!-- /.card-header -->
                <div class="card-body mt-3">
                    <div class="table-show">
                        <table class="table">
                            <tbody>
                            <tr>
                                <th colspan="4">
                                    <div class="card-header">
                                        <h3 class="card-title">基本信息 <i class="fa fa-newspaper-o"></i></h3>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th style="width:120px">订单状态:</th>
                                <td style="" colspan="3"> <span style="color:{{$data['status_color']}}!important;white-space:nowrap;">{{$data['status_show']}}</span>
                                </td>
                            </tr>
                            <tr>
                                <th style="width:120px">订单编号:</th>
                                <td style="">{{$data['number']}}</td>
                                <th style="width:120px">订单类型:</th>
                                <td style="">{{$data['type_show']}}</td>
                            </tr>
                            <tr>
                                <th>商品名称:</th>
                                <td>{{$data['goods_name']}}</td>
                                <th>商品价格:</th>
                                <td>
                                    ¥{{$data['goods_price']}} 元
                                </td>
                            </tr>
                            <tr>
                                <th>商品图片:</th>
                                <td>
                                    <img class="" style="width: 120px;" src="{{$data['goods_image']}}" alt="Second slide">
                                </td>
                                <th>商品数量:</th>
                                <td>
                                    {{$data['quantity']}}
                                </td>
                            </tr>
                            <tr>
                                <th>订单金额:</th>
                                <td>
                                    ¥{{$data['total_amount']}} 元
                                </td>
                                <th>积分抵扣金额:</th>
                                <td>
                                    ¥{{$data['points_deducted_amount']}} 元
                                </td>
                            </tr>
                            <tr>
                                <th>下单时间:</th>
                                <td>{{$data['created_at']}}</td>
                                @switch($data['status'])
                                    @case(\App\Models\Order\Order::RECYCLED)
                                    <th>回收时间:</th>
                                    <td>{{$data['created_at']}}</td>
                                    @break
                                @endswitch
                            </tr>
                            <tr>
                                <th>支付时间:</th>
                                <td>{{$data['paid_at']}}</td>
                                <th>支付类型:</th>
                                <td>{{$data['paid_type_show']}}</td>
                            </tr>

                            <tr>
                                <th>下单用户:</th>
                                <td>{{$data['user']['mobile']}}- {{$data['user']['nickname']}}</td>
                            </tr>

                            @if(isset($data['primary_distributor']))
                                <tr>
                                    <th>一级分销员:</th>
                                    <td>{{$data['primary_distributor']['mobile']}}-{{$data['primary_distributor']['nickname']}}</td>
{{--                                    <th>所属机构:</th>--}}
{{--                                    <td>{{ Arr::get($data['distributor'], 'name')}}</td>--}}
                                </tr>
                            @endif

                            @if(isset($data['secondary_distributor']))
                                <tr>
                                    <th>二级分销员:</th>
                                    <td>{{$data['secondary_distributor']['mobile']}}-{{$data['secondary_distributor']['nickname']}}</td>
                                </tr>
                            @endif
                            <tr>
                                <th>备注:</th>
                                <td colspan="3">{{$data['remark']}}</td>
                            </tr>

                            <!-- 物流信息 begin -->
                            @if(isset($data['express']) && $express = $data['express'])
                            <tr>
                                <th colspan="4">
                                    <div class="card-header">
                                        <h3 class="card-title">物流信息 <i class="fa fa-truck"></i></h3>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th>物流公司:</th>
                                <td>{{$express['company_name']}}</td>
                                <th>物流单号:</th>
                                <td>{{$express['express_no']}}</td>
                            </tr>
                            <tr>
                                <th>收货人:</th>
                                <td>
                                    {{Arr::get($express, 'receiver_name')}} -   {{Arr::get($express, 'receiver_mobile')}}
                                </td>
                                <th>收货地址:</th>
                                <td>
                                    {{$express['receiver_address']}}
                                </td>
                            </tr>
                            <tr>
                                <th>发货时间:</th>
                                <td>{{$express['shipped_at']}}</td>
                                <th>签收时间:</th>
                                <td>{{$express['signed_at']}}</td>
                            </tr>
                            <tr>
                                <td style="vertical-align: top;padding-top: 10px">物流详情</td>
                                <td colspan="3">
                                    <div class="track-list track-list-date">
                                        <ul>
                                            @foreach ($express['express_info'] as $key => $vo)
                                                @if ($key === 0)
                                                <li class="afterdate  node-to-change track-node-0008  first">
                                                @else
                                                <li class="">
                                                @endif
                                                    <i class="node-icon"><i class="dot"></i><i class="state-icon"></i></i><span class="date">{{$vo['datetime']}}</span>
                                                    <span class="txt">{{$vo['remark']}}</span>;
                                                </li>
                                            @endforeach
                                        </ul>
                                    </div>
                                </td>
                            </tr>
                            @endif
                            <!-- 物流信息 end -->

                            <!-- 赠送信息 begin -->
                            @if(isset($data['gifts']) && $gifts = $data['gifts'])
                                <tr>
                                    <th colspan="4">
                                        <div class="card-header">
                                            <h3 class="card-title">赠送记录 <i class="fa fa-truck"></i></h3>
                                        </div>
                                    </th>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <table class="table">
                                            <thead>
                                            <tr>
                                                <th>{{__('given_bag_image')}}</th>
                                                <th>{{__('given_message')}}</th>
                                                <th>{{__('given_number')}}</th>
                                                <th>{{__('given_quantity')}}</th>
                                                <th>{{__('received_number')}}</th>
                                                <th>{{__('领取信息')}}</th>
                                                <th>{{__('given_at')}}</th>
                                                <th>{{__('status')}}</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            @foreach ($gifts as $key => $vo)
                                                <tr>
                                                    <td><img src="{{ Arr::get($vo, 'bag_image')  }}" width="120px"></td>
                                                    <td>{{ Arr::get($vo, 'given_message') }}</td>
                                                    <td>{{ Arr::get($vo, 'given_number') }}</td>
                                                    <td>{{ Arr::get($vo, 'given_quantity') }}</td>
                                                    <td>{{ count(Arr::get($vo, 'receives')) }}</td>
                                                    <td valign="stop">
                                                            <table class="table">
                                                                <thead>
                                                                <tr>
                                                                    <th>{{__('receiver')}}</th>
                                                                    <th>{{__('received_at')}}</th>
                                                                </tr>
                                                                </thead>
                                                                <tbody>
                                                                @foreach ($vo['receives'] as $receive)
                                                                    <tr>
                                                                        <td>{{Arr::get($receive, 'user.nickname')}} - {{Arr::get($receive, 'user.mobile')}}</td>
                                                                        <td>{{$receive['received_at']}}</td>
                                                                    </tr>
                                                                @endforeach

                                                                </tbody>
                                                            </table>
                                                    </td>
                                                    <td>{{$vo['created_at']}}</td>
                                                    <td>{{$vo['status_show']}}</td>

                                                </tr>
                                            @endforeach
                                            </tbody>
                                        </table>
                                    </td>
                                </tr>
                            @endif
                            <!-- 物流信息 end -->

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <!-- 基本信息 end -->

            <!-- 物流信息 begin -->
            @if(isset($data['express']))
            {{--<div class="card">
                <div class="card-header">
                    <h3 class="card-title">物流信息 <i class="fa fa-truck"></i></h3>
                </div>
                <!-- /.card-header -->
                <div class="card-body">
                    <div class="table-show">
                        <table class="table">
                            <tbody>
                            <tr>
                                <th style="width:120px">物流公司:</th>
                                <td>{{$data['express']['express_company_show']}}</td>
                                <th style="width:120px">物流单号:</th>
                                <td>{{$data['express']['express_no']}}</td>
                            </tr>
                            <tr>
                                <td>物流详情</td>
                                <td colspan="3">
                                    @php
                                    $express_info = $data['express']['express_info'];
                                    @endphp
                                    <div class="track-list track-list-date">
                                        <ul>
                                            @foreach ($data['express']['express_info'] as $key => $vo)
                                                @if ($key === 0)
                                                    <li class="afterdate  node-to-change track-node-0008  first">
                                                @else
                                                    <li class="">
                                                @endif
                                                        <i class="node-icon"><i class="dot"></i><i class="state-icon"></i></i><span class="date">{{$vo['datetime']}}</span>
                                                        <span class="txt">{{$vo['remark']}}</span>;
                                                    </li>
                                            @endforeach
                                        </ul>
                                    </div>
                                </td>
                            </tr>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>--}}
            @endif
            <!-- 物流信息 end -->
            <!-- /.row -->

        </div>
    </div>
</div>
<script>
    $(function () {
        //
    });
</script>