@extends('layout.master') @section('body-class', 'page-account-order-info') @section('content')
订单详情
@if ($order->status == 'unpaid') 去支付 @endif @if ($order->status == 'shipped') @endif
订单号 下单日期 状态 订单金额
{{ $order->number }} {{ $order->created_at }} {{ $order->status }} {{ $order->total }}
订购商品
@foreach ($order->orderProducts as $product)
{{ $product->name }} x {{ $product->quantity }}
{{ $product->price }}
@if ($order->status == 'completed') 申请售后 @endif
@endforeach
Order Total
@foreach (array_chunk($order->orderTotals->all(), 2) as $totals) @foreach ($totals as $total) @endforeach @endforeach
{{ $total->title }} {{ $total->value }}
@if (0)
物流状态
@endif @if ($order->orderHistories->count())
订单状态
@foreach ($order->orderHistories as $orderHistory) @endforeach
状态 备注 更新时间
{{ $orderHistory->status }} {{ $orderHistory->comment }} {{ $orderHistory->created_at }}
@endif
@endsection @push('add-scripts') @endpush