{{ $settings->company_name }}

{{ $companyAddress }}
Invoice To:
{{ $clientName }}
{{ $clientAddress }}
Invoice No: {{ $invoiceNumber }}
Date: {{ $invoiceDate }}
Due Date: {{ $dueDate }}
@php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; @endphp @foreach ($products as $index => $product) @php $total = $product['quantity'] * $product['unit_price']; $totalWithGst = $total + $product['total_price']; $subtotal += $totalWithGst; $pageSubtotal += $totalWithGst; @endphp @if (($index + 1) % 20 == 0)
# Product Description Product Code Quantity Rate GST(%) Total
{{ $index + 1 }} {{ $product['name'] }} {{ $product['code'] }} {{ $product['quantity'] . '(' . ($product['uom']) . ')'}} {{ number_format($product['unit_price'], 2) }} {{ number_format($product['gst'], 2) }} {{ number_format($totalWithGst, 2) }}

...Continue

{{ $companyName }}

{{ $companyAddress }}
Invoice To:
{{ $clientName }}
{{ $clientAddress }}
Invoice No: {{ $invoiceNumber }}
Date: {{ $invoiceDate }}
Due Date: {{ $dueDate }}
@php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach
# Product Description Product Code Quantity Rate GST(%) Total