Order Invoice

Order #{{ $order->order_number }}

Order Date: {{ $order->created_at->format('F d, Y') }} Payment Status: {{ $order->payment_status }}
Customer Name: {{ $order->user->name }} Email: {{ $order->user->email }}
Shipping Address: {{ $order->shippingAddress->address_line_1 }}, {{ $order->shippingAddress->city }}, {{ $order->shippingAddress->country }} {{ $order->shippingAddress->zip_code }}
@foreach ($order->orderItems as $item) @endforeach
Product Name Warehouse Quantity Regular Price Discounted Price Total
{{ $item->products->productTranslations->name }} {{ $item->warehouses->name }} {{ $item->quantity }} ${{ $item->regular_price }} ${{ $item->discounted_price }} ${{ ($item->discounted_price ?: $item->regular_price) * $item->quantity }}
Total: ${{ $order->total }}
Shipping: ${{ $order->shipping_cost }}
Subtotal: ${{ $order->subtotal }}