@extends('layouts.app') @section('css') @endsection @section('content')
Order #{{ $order->number }}

{{ $order->number }}

{{ $order->datetime_formatted }}

@if ($order->deleted_at)

{{ $order->deleted_at_formatted }}

@endif

{{ $order->total }} Points

{{ $order->amount_to_pay }} Points

@if ($order->discount)

MYR {{ $order->discount->code }}

@endif
{!! $order->shipping_status_badge !!} @if (!$order->deleted_at) @endif
@if ($order->tracking_link)
{!! $order->tracking_link !!} {!! $order->tracking_number !!}
@endif

{{ $order->user->first_name }} {{ $order->user->last_name }}
{{ $order->user->email }}
{{ $order->user->phone_number }}
View User

Items
@foreach ($order->productVariations as $variation) @php $product = $variation->product; @endphp @endforeach
Item Unit Price (Points) Quantity Total
{{ $product->name }} ({{ $variation->title }}) {{ $variation->pivot->unit_price }} {{ $variation->pivot->quantity }} {{ $variation->pivot->price }} Points
Subtotal {{ $order->subtotal }} Points
Total {{ $order->total }} Points
Point Use {{ $order->amount_to_pay }} Points
Shipping Details
@php $shipping = $order->shipping @endphp

{{ $shipping->first_name }}

{{ $shipping->last_name }}

{{ $shipping->street }}

{{ $shipping->postcode }}

{{ $shipping->city }}

{{ $shipping->state }}

{{ $shipping->phone_number }}

{{ $shipping->remark ?? '-' }}

@endsection @section('js') @endsection