@extends('admin.layouts.app') @section('title', 'Order '.$order->order_number) @section('content')
{{ $order->order_number }} {{ $order->statusLabel() }} @if($order->is_flagged) Fraud risk {{ $order->fraud_score }}@endif
Invoice
Items
@foreach($order->items as $item) @endforeach @if($order->discount > 0)@endif
ProductQtyPriceSubtotal
{{ $item->product_name }} @if($item->variation_label)({{ $item->variation_label }})@endif {{ $item->quantity }} {{ money($item->price) }} {{ money($item->subtotal) }}
Subtotal{{ money($order->subtotal) }}
Discount @if($order->coupon_code)({{ $order->coupon_code }})@endif-{{ money($order->discount) }}
Shipping{{ money($order->shipping_cost) }}
Total{{ money($order->total) }}
Cost of goods / Est. profit{{ money($order->total_cost) }} / {{ money($order->profit) }}
Status History
    @forelse($order->statusHistories as $h)
  • {{ ucfirst($h->status) }} {{ $h->note }} {{ $h->created_at->format('d M, H:i') }} @if($h->user)— {{ $h->user->name }}@endif
  • @empty
  • No history.
  • @endforelse
Customer
{{ $order->customer_name }}
{{ $order->customer_phone }}
@if($order->customer_email)
{{ $order->customer_email }}
@endif
{{ $order->address }}
{{ $order->area }} {{ $order->city }}
@if($order->notes)
Note: {{ $order->notes }}
@endif
IP: {{ $order->ip_address }}
Update Status
@csrf @method('PATCH')
Payment
Method: {{ $order->payment_method }}
@if($order->payment_txn_id)
TrxID: {{ $order->payment_txn_id }}
@endif @if($order->payment_sender_number)
From: {{ $order->payment_sender_number }}
@endif
@csrf @method('PATCH')
@endsection