@extends('layouts.admin') @section('title', $order->order_number) @section('content') @php $m = $shop->money; $a = $order->address; $labels = ['confirmed' => __('Confirm order'), 'processing' => __('Start processing'), 'packed' => __('Mark packed'), 'shipped' => __('Mark shipped'), 'delivered' => __('Mark delivered'), 'completed' => __('Complete order')]; @endphp ← {{ __('Orders') }}

{{ $order->order_number }}

{{ __('Items') }}

    @foreach ($order->items as $i)
  • @include('partials.line-thumb', ['image' => $i->image_url])

    {{ $i->product_name }}

    {{ collect([$i->color_label, $i->size_label])->filter()->implode(' · ') }} × {{ $i->quantity }}

    {{ $i->sku }}

    {{ $m->format((float) $i->line_total) }}

  • @endforeach
{{ __('Subtotal') }}
{{ $m->format((float) $order->subtotal) }}
@if ((float) $order->discount_total > 0)
{{ __('Discount') }} @if ($order->coupon_code)({{ $order->coupon_code }})@endif
−{{ $m->format((float) $order->discount_total) }}
@endif
{{ __('Delivery') }} ({{ $order->shipping_method_name }})
{{ $m->format((float) $order->shipping_fee) }}
{{ __('Total') }}
{{ $m->format((float) $order->grand_total) }}

{{ __('History') }}

    @foreach ($order->history as $h)
  1. {{ __(ucfirst($h->to_status)) }}{{ $h->created_at }}@if ($h->first_name)· {{ $h->first_name }}@endif @if ($h->note)— {{ $h->note }}@endif
  2. @endforeach
@endsection