INVOICE

Invoice # @if(!empty($order->invoice_number)) {{ $order->invoice_number }} @elseif(!empty($order->order_number)) {{ $order->order_number }} @else {{ $order->id }} @endif

Company Logo

Billed To: @if($order->shippingAddress) {{ $order->shippingAddress->name ?? '' }}, {{ $order->shippingAddress->address ?? '' }}, {{ $order->shippingAddress->city ?? '' }}, {{ $order->shippingAddress->state ?? '' }}, {{ $order->shippingAddress->pincode ?? '' }}
Phone: {{ $order->shippingAddress->phone ?? '' }} @elseif($order->user) {{ $order->user->name ?? '' }} @else Customer @endif

Invoice Date: {{ \Carbon\Carbon::parse($order->created_at)->format('d M Y') }}

@php $i = 1; $subtotal = 0; @endphp @foreach($order->orderItems as $item) @php $itemProduct = $item->product; $itemVendor = $item->vendorProduct; $itemName = $itemProduct->product_name ?? $itemVendor->product_name ?? 'N/A'; @endphp @php $lineTotal = $item->quantity * $item->price; $subtotal += $lineTotal; @endphp @endforeach @if(isset($order->tax_amount) && $order->tax_amount > 0) @endif @if(isset($order->shipping_charges) && $order->shipping_charges > 0) @endif @if(!empty($order->discount_amount) && $order->discount_amount > 0) @endif
# Product Qty Unit Price Line Total
{{ $i++ }} {{ $itemName }} @if(!empty($item->variation))
{{ $item->variation }} @endif
{{ $item->quantity }} ₹{{ number_format($item->price, 2) }}₹{{ number_format($lineTotal, 2) }}
Subtotal ₹{{ number_format($subtotal, 2) }}
Tax ({{ $order->tax_percent ?? '0' }}%) ₹{{ number_format($order->tax_amount, 2) }}
Shipping ₹{{ number_format($order->shipping_charges, 2) }}
Discount -₹{{ number_format($order->discount_amount, 2) }}
Notes:
Thank you for your business. Payment is due @if(isset($order->due_date)) by {{ \Carbon\Carbon::parse($order->due_date)->format('d M Y') }}. @else within 7 days. @endif