INVOICE

#{{ $order->order_number }}
Customer Information:
@if($order->contact_name)
Name: {{ $order->contact_name }}
@endif @if($order->contact_phone)
Phone: {{ $order->contact_phone }}
@endif @if($order->whatsapp)
WhatsApp: {{ $order->whatsapp }}
@endif @if($order->contact_email)
Email: {{ $order->contact_email }}
@endif @if($order->address)
Address: {{ $order->address }}, {{ $order->city }}, {{ $order->state }} {{ $order->postal_code }}
@endif
Order Details:
Date: {{ $order->created_at->format('d M, Y h:i A') }}
@if($order->payment_method === 'cod')
Cash on Delivery
(Payment due upon delivery)
@else
Pay with: {{ $order->payment_method === 'cod' ? 'Cash on Delivery' : 'SSLCommerz' }}
@endif
@foreach($order->items as $item) @endforeach
Item Quantity Unit Price Total
{{ $item->product->title }}
{{ $item->variation->unit_value }}{{ $item->variation->unit_type }}
{{ $item->quantity }} ৳{{ number_format($item->variation->sale_price) }} ৳{{ number_format($item->variation->sale_price * $item->quantity) }}
@if($order->discount > 0 && $order->coupon_code) @endif
Subtotal: ৳{{ number_format($order->subtotal) }}
Discount ({{ $order->coupon_code }}): -৳{{ number_format($order->discount) }}
Delivery Charge: ৳{{ number_format($order->delivery_charge) }}
Total: ৳{{ number_format($order->total) }}