@foreach($orders as $order)
Sawdabazar E-Commerce Ltd.
House 12, Road 5, Banani, Dhaka-1213, Bangladesh
Phone: +880 1712-345678 | Email: support@sawdabazar.com
Invoice
Order ID: #{{ $order->order_number }}
Date: {{ $order->created_at->format('M j, Y h:i A') }}
Payment Method: {{ strtoupper($order->payment_method) }}
@if(strtolower($order->payment_status) === 'paid') Paid @elseif(strtolower($order->payment_status) === 'refunded') Refunded @else Unpaid @endif
Bill To
{{ $order->customer_name }}
@if($order->customer_email) Email: {{ $order->customer_email }}
@endif Phone: {{ $order->customer_phone }}
{!! nl2br(e($order->billing_address ?? $order->shipping_address)) !!}
Ship To
{{ $order->customer_name }}
Phone: {{ $order->customer_phone }}
{!! nl2br(e($order->shipping_address)) !!}
@foreach($order->items as $item) @endforeach
Product Details SKU Unit Price Qty Total
{{ $item->product_name }} @if($item->variant?->options)
@foreach($item->variant->options as $key => $value) {{ $key }}: {{ $value }}{{ !$loop->last ? ' | ' : '' }} @endforeach
@endif
{{ $item->product_sku }} ৳{{ number_format($item->price, 2) }} {{ $item->quantity }} ৳{{ number_format($item->price * $item->quantity, 2) }}
@if($order->tax > 0) @endif @if($order->discount > 0) @endif
Subtotal: ৳{{ number_format($order->subtotal, 2) }}
Shipping Cost: ৳{{ number_format($order->shipping_cost, 2) }}
VAT/Tax: ৳{{ number_format($order->tax, 2) }}
{{ $order->is_exchange ? 'Returned value:' : 'Discount:' }} -৳{{ number_format($order->discount, 2) }}
Grand Total: ৳{{ number_format($order->grand_total, 2) }}
@if($order->notes)
Customer Note
{{ $order->notes }}
@endif
@if(!$loop->last)
@endif @endforeach