{{-- Shared Invoice Content Partial --}} {{-- Variables: $order, $setting --}}
@if($setting->logo) {{ $setting->name }} @endif

{{ $setting->name }}

@if($setting->phone)

📞 {{ $setting->phone }}

@endif @if($setting->email)

✉️ {{ $setting->email }}

@endif

INVOICE

@if($order->consignment_id) @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 }}

Invoice From

{{ $setting->name }}

{{ $setting->address ?? 'Bangladesh' }}

@if($setting->phone)

{{ $setting->phone }}

@endif

Invoice To

@if($order->shipping)

{{ $order->shipping->name ?? '' }}

📞 {{ $order->shipping->phone ?? '' }}

📍 {{ $order->shipping->address ?? '' }}

@if($order->district)

{{ $order->district }}, Bangladesh

@endif @endif
@foreach($order->orderItems as $i => $item) @endforeach
# 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) }}
@if($order->discount > 0) @endif @if($order->coupon_code) @endif
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) }}