show.blade.php
15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
<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>