@if ($type == 'I')

{{ $companyName }}

{{ $companyAddress }},
Mail -{{$email}}
@elseif($type == 'Q')

{{ $companyName ?? ''}}

Products Quotation
Contact No: {{ $contact_no ?? ''}},
@endif
@if ($type == 'I') @endif
GST No - {{ $gst_no ?? '' }}
Contact No: {{ $contact_no ?? ''}}
To:{{ $clientName }}
Address: {{ $clientAddress }}
@if($type == 'I') Payment Terms: {{ $payment_terms }}
Bill No:{{ $invoiceNumber }}
Date: {{ $invoiceDate }} @endif Quote No:{{ $invoiceNumber }}
Quote Date: {{ $invoiceDate }}
@if ($type == 'I') @endif @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($type == 'I') @elseif($type == 'Q') @endif @if (($index + 1) % 20 == 0)
S.No Description HSN Code Qty RateGST(%)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) }}{{ number_format($total, 2) }}

...Continue

{{ $companyName }}

{{ $companyAddress }},
Mail -{{$email}}
GST No - {{ $gst_no ?? '' }}
Contact No: {{ $invoiceNumber ?? ''}}
To:
{{ $clientName }}
{{ $clientAddress }}
Payment Terms: {{ $invoiceDate }}
Bill No:{{ $invoiceNumber }}
Date: {{ $invoiceDate }}
@if($type == 'I') @endif @php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach
S.No Description HSN Code Qty RateGST(%)Total