@extends('layouts.app') @section('content')
Order #{{ $order->number }}
@php $shipping = $order->shipping; $payment = $order->payment ?? null; @endphp
{{ $order->number }}
{{ $order->created_at->format('Y-m-d @ H:i') }}
@if ($order->deleted_at)
{{ $order->deleted_at->format('Y-m-d @ H:i') }}
@endif
{{ $order->total }}
@if ($order->discount)
{{ $order->discount->code }}
@endif
{{ $order->status }}
{{ ucwords(substr($order->user->getTable(), 0, -1)) }}
{{ $order->user->first_name }} {{ $order->user->last_name }}
{{ $order->user->email }}
Items
@foreach ($order->productVariations as $variation) @php $product = $variation->product; @endphp @endforeach
Item Unit Price Quantity Total
{{ $product->name }}
{{ $variation->name }}
{{ $variation->pivot->date }} {{ $variation->pivot->time }}
{{ $variation->pivot->unit_price }} {{ $variation->pivot->quantity }} {{ $variation->pivot->price }}
Subtotal {{ $order->subtotal }}
Discount Amount {{ $order->discount_amount }}
Tax {{ $order->tax }}
Total {{ $order->total }}
Payments
@if ($order->payments->count()) @foreach ($order->payments as $payment) @endforeach @else @endif
Transaction Number Status Transaction Message Created At Updated At
{{ $payment->number }} {{ $payment->status }} {{ $payment->transaction_message ?? '-' }} {{ $payment->created_at->format('Y-m-d @ H:i') }} {{ $payment->updated_at->format('Y-m-d @ H:i') }} @if ($payment->status == 'PENDING') @endif
No record
@endsection @section('js') @endsection