@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' && $gst != 'N') @endif @php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; @endphp @foreach ($products as $index => $product) @php $total = $product['quantity'] * $product['unit_price']; $gstAmount = 0; $gstRate = $product['gst'] ?? 0; if ($type == 'I' && $gst != 'N') { $gstAmount = ($total * $gstRate) / 100; } $totalWithGst = $total + $gstAmount; $subtotal += $totalWithGst; $pageSubtotal += $totalWithGst; @endphp @if($type == 'I') @if ($gst != 'N') @endif @elseif($type == 'Q') @endif @if (($index + 1) % ($settings->inv_desc_flag == 'A' ? 15 : 20) == 0)
S.No Description HSN Code Qty RateGST(%)Total
{{ $index + 1 }}
{{ $product['name'] ?? '' }}
@if($settings->inv_desc_flag == 'A' && !empty($product['description']))
({{ $product['description'] }})
@endif
{{ $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