{{ __('Order Details') }} - {{ $order->order_number }}

@if($order->canBeEdited()) Edit Order @endif Back to Orders
@if (session()->has('success'))
{{ session('success') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Order Information

{{ $order->order_number }}

{{ $order->order_date->format('d M Y') }}

{{ $order->customer->name }}

{{ $order->warehouse->name }}

{{ $order->salesUser->name ?? '-' }}

@php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-800', 'confirmed' => 'bg-blue-100 text-blue-800', 'processing' => 'bg-yellow-100 text-yellow-800', 'ready' => 'bg-purple-100 text-purple-800', 'shipped' => 'bg-indigo-100 text-indigo-800', 'delivered' => 'bg-green-100 text-green-800', 'cancelled' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($order->status) }}
@if($order->notes)

{{ $order->notes }}

@endif

Order Items

@foreach($order->items as $item) @endforeach
Product Price Quantity Discount Subtotal
{{ $item->product->name }}
{{ $item->product->sku }}
Rp {{ number_format($item->price) }} {{ number_format($item->quantity) }} Rp {{ number_format($item->discount) }} Rp {{ number_format($item->subtotal) }}
@if($order->invoice)

Invoice Information

{{ $order->invoice->invoice_number }}

{{ $order->invoice->invoice_date->format('d M Y') }}

{{ $order->invoice->due_date->format('d M Y') }}

@php $invoiceStatusColors = [ 'pending' => 'bg-yellow-100 text-yellow-800', 'partial' => 'bg-blue-100 text-blue-800', 'paid' => 'bg-green-100 text-green-800', 'overdue' => 'bg-red-100 text-red-800', ]; @endphp {{ ucfirst($order->invoice->status) }}
@endif @if($order->payments->count() > 0)

Payment History

@foreach($order->payments as $payment) @endforeach
Date Method Reference Amount
{{ $payment->payment_date->format('d M Y') }} {{ ucfirst(str_replace('_', ' ', $payment->payment_method)) }} {{ $payment->reference_number ?? '-' }} Rp {{ number_format($payment->amount) }}
@endif

Order Summary

Subtotal Rp {{ number_format($order->subtotal) }}
Discount Rp {{ number_format($order->discount) }}
Tax Rp {{ number_format($order->tax) }}
Total Rp {{ number_format($order->total) }}
@if($order->paid_amount > 0)
Paid Amount Rp {{ number_format($order->paid_amount) }}
Remaining Rp {{ number_format($order->remaining_amount) }}
@endif
@if($order->isDraft()) @endif @if($order->isConfirmed()) @endif @if(!$order->invoice && ($order->isConfirmed() || $order->isProcessing())) @endif @if($order->canBeEdited()) @endif @if($order->invoice && !$order->isFullyPaid())
@endif @if($order->invoice) Download Invoice PDF @endif

Order Timeline

Order Created

{{ $order->created_at->format('d M Y H:i') }}

@if($order->updated_at != $order->created_at)

Last Updated

{{ $order->updated_at->format('d M Y H:i') }}

@endif