Invoice From:{{ $settings->company_name ?? '' }} {{ $settings->address ?? '' }} {{ $settings->email ?? '' }} (+91) {{ $settings->phone ?? '' }} |
Invoice To:{{ $addedInvoice->client->user->name ?? '' }} (+91) {{ $addedInvoice->client->user->phone ?? '' }} |
No. | Item Description | Price | Quantity | Amount | |
---|---|---|---|---|---|
{{ $index + 1 }} | {{ $data->product_name ?? '' }} | @php $productTax = 0; $price = $data->price; $rowTotal = 0; // Check if price includes tax and GST is applicable if ($settings->price_tax_flag == 'A' && $addedInvoice->gst != 'N') { if (!empty($data->invoiceItemTaxes)) { foreach ($data->invoiceItemTaxes as $tax) { $productTax += ($data->price * $tax->tax) / 100; } } $price += $productTax; $totalTax += $productTax; } // Calculate row total $rowTotal = $price * $data->quantity; $subtotal += $rowTotal; @endphp{{ number_format($price ?? 0, 2) }} | {{ $data->quantity ?? 0 }} | {{ number_format($rowTotal ?? 0, 2) }} | |
SubTotal | @if($settings->price_tax_flag == 'A'){{ number_format($subtotal ?? 0, 2) }} | @else{{ number_format($addedInvoice->amount ?? 0, 2) }} | @endif|||
Tax | ₹{{ number_format($totalTax, 2) }} | ||||
Discount | ₹{{ number_format($totalDiscount, 2) }} | ||||
Redeemed Amount | ₹{{ number_format($redeemed, 2) }} | ||||
Grand Total | ₹{{ number_format($grandTotal, 2) }} | ||||
Total Purchased Product Qty | {{ $sumQty }} |