{{-- Shared Invoice Content Partial --}} {{-- Variables: $order, $setting --}}
{{ $setting->name }}
@if($setting->phone)📞 {{ $setting->phone }}
@endif @if($setting->email)✉️ {{ $setting->email }}
@endif| Invoice No | #{{ $order->invoice_id }} |
| Date | {{ $order->created_at->format('d M Y') }} |
| Payment | {{ strtoupper($order->payment_method ?? 'COD') }} |
| Status | {{ ucfirst($order->order_status ?? 'pending') }} |
| Tracking | {{ $order->consignment_id }} |
{{ $setting->name }}
{{ $setting->address ?? 'Bangladesh' }}
@if($setting->phone){{ $setting->phone }}
@endif{{ $order->shipping->name ?? '' }}
📞 {{ $order->shipping->phone ?? '' }}
📍 {{ $order->shipping->address ?? '' }}
@if($order->district){{ $order->district }}, Bangladesh
@endif @endif| # | Product | Variant | Price | Qty | Total |
|---|---|---|---|---|---|
| {{ $i + 1 }} | {{ $item->product_name }} | @if($item->product_size){{ $item->product_size }}@endif @if($item->product_color) / {{ $item->product_color }}@endif @if(!$item->product_size && !$item->product_color)—@endif | ৳{{ number_format($item->sale_price) }} | {{ $item->qty }} | ৳{{ number_format($item->sale_price * $item->qty) }} |
| Subtotal | ৳{{ number_format($order->orderItems->sum(fn($i) => $i->sale_price * $i->qty)) }} |
| Shipping (+) | ৳{{ number_format($order->shipping_charge ?? 0) }} |
| Discount (-) | ৳{{ number_format($order->discount) }} |
| Coupon ({{ $order->coupon_code }}) | — ৳{{ number_format($order->coupon_discount ?? 0) }} |
| TOTAL DUE | ৳{{ number_format($order->total_amount) }} |