Invoice Number {{$addedInvoice->invoice_id ?? ''}}
Invoice Date {{$addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : ''}}
(+91) {{$addedInvoice->client->user->phone ?? ''}}
{{$settings->address ?? ''}}
{{$settings->email ?? ''}}
(+91) {{$settings->phone ?? ''}}
No. | Item Description | Price | Quantity | Amount |
---|---|---|---|---|
{{ $index + 1 }}
|
{{$data->product_name ?? ''}} | {{$data->price ?? ''}} | {{$data->quantity ?? ''}} | {{$data->total ?? ''}} |
SubTotal | ₹{{number_format($addedInvoice->amount ?? 0, 2)}} | |||
Tax | @php $totalTax = 0; foreach ($addedInvoice->invoiceItems as $item) { if ($item->invoiceItemTaxes) { foreach ($item->invoiceItemTaxes as $tax) { $totalTax += ($item->total * $tax->tax) / 100; } } } @endphp ₹{{ number_format($totalTax, 2) }} | |||
Discount | @php $totalDiscount = 0; $total = $addedInvoice->amount + $totalTax; if ($addedInvoice->discount_type == 1) { $totalDiscount = $addedInvoice->discount; } elseif ($addedInvoice->discount_type == 2) { $discountAmount = ($total * $addedInvoice->discount) / 100; $totalDiscount = $discountAmount; } else { $totalDiscount = 0; } @endphp ₹ {{number_format($totalDiscount ?? 0, 2)}} | |||
Grand Total | ₹ {{number_format(floor($total - $totalDiscount) ?? 0, 2)}} |