INVOICE

#{{ $order->order_number }}

{{ $website->name }}

@if($website->company) @if($website->company->address)

{{ $website->company->address }}

@endif @if($website->company->city || $website->company->state || $website->company->postal_code)

{{ $website->company->city }}@if($website->company->city && $website->company->state), @endif{{ $website->company->state }} {{ $website->company->postal_code }}

@endif @if($website->company->country)

{{ $website->company->country }}

@endif @if($website->company->phone)

Phone: {{ $website->company->phone }}

@endif @if($website->company->email)

Email: {{ $website->company->email }}

@endif @endif

Invoice Details

Invoice Date: {{ $order->created_at->format('F d, Y') }}

@if($order->paid_at)

Payment Date: {{ $order->paid_at->format('F d, Y') }}

@endif

Payment Method: {{ ucfirst(str_replace('_', ' ', $order->payment_method)) }}

Payment Status: {{ ucfirst($order->payment_status) }}

Bill To

{{ $order->customer_name }}

{{ $order->customer_email }}

@if($order->customer_phone)

{{ $order->customer_phone }}

@endif @if($order->billing_address_line_1)

{{ $order->billing_address_line_1 }}
@if($order->billing_address_line_2) {{ $order->billing_address_line_2 }}
@endif {{ $order->billing_city }}, {{ $order->billing_state }} {{ $order->billing_postal_code }}
{{ $order->billing_country }}

@endif
@foreach($order->orderItems as $item) @endforeach
Item Price Qty Total
{{ $item->product_name }}
@if($item->variation_details)
{{ $item->variation_details }}
@endif @if($item->product_sku)
SKU: {{ $item->product_sku }}
@endif
RM {{ number_format($item->unit_price, 2) }} {{ $item->quantity }} RM {{ number_format($item->total_price, 2) }}
@if($order->tax_amount > 0) @endif @if($order->shipping_amount > 0) @endif @if($order->discount_amount > 0) @endif
Subtotal: RM {{ number_format($order->subtotal, 2) }}
Tax: RM {{ number_format($order->tax_amount, 2) }}
Shipping: RM {{ number_format($order->shipping_amount, 2) }}
Discount: -RM {{ number_format($order->discount_amount, 2) }}
Total: RM {{ number_format($order->total_amount, 2) }}
@if($order->notes)

Notes:

{{ $order->notes }}

@endif