{{$addedInvoice->branch->company->name}}

{{$addedInvoice->branch->company->address}},
Mail -{{$addedInvoice->branch->company->email}}
GST No - {{$addedInvoice->branch->gst_no ?? ''}}
Contact No: {{ $addedInvoice->branch->company->phone ?? ''}}
To: {{$addedInvoice->client->user->name ?? ''}}
Address: @php $address = optional(optional($addedInvoice->order)->clientAddress)->address ?? optional(optional($addedInvoice->client)->user)->location ?? ''; @endphp {{$address ?? ''}}
Payment Terms: @if($addedInvoice->payments->isNotEmpty()) @foreach($addedInvoice->payments as $payment) @if($payment->mode) {{ $payment->mode->name }} @else N/A
@endif @endforeach @else N/A @endif
Bill No: {{ $addedInvoice->invoice_id ?? ''}}
Date: {{ $addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : '' }}
@php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; $totalGST = 0; @endphp @foreach ($addedInvoice->invoiceItems as $index => $product) @php $total = $product->quantity * $product->price; $gstRate = $product->invoiceItemTaxes->sum('tax') ?: 0; $gstAmount = ($total * $gstRate) / 100; $totalWithGst = $total + $gstAmount; $subtotal += $total; $pageSubtotal += $total; $totalGST += $gstAmount; @endphp @if (($index + 1) % 18 == 0)
S.No Description HSN Code Qty Rate Total
{{ $index + 1 }} {{$settings->native_name_flag=='A'? ($product->products->native_name ?? $product->product_name ):($product->product_name ?? '') }} @if($settings->inv_desc_flag == 'A' && !empty($product->description)) ({{ $product->description }}) @endif {{ $product->products->hsn_code ?? ''}} {{ $product->quantity ?? '' }} ₹ {{ number_format($product->price ?? '', 2) }} ₹ {{ number_format($total, 2) }}

...Continue

{{$addedInvoice->branch->company->name}}

{{$addedInvoice->branch->company->address}},
Mail -{{$addedInvoice->branch->company->email}}
GST No - {{$addedInvoice->branch->gst_no ?? ''}}
Contact No: {{ $addedInvoice->branch->company->phone ?? ''}}
To: {{$addedInvoice->client->user->name ?? ''}}
Address: {{$address ?? ''}}
Payment Terms: {{$addedInvoice->due_date ? \Carbon\Carbon::parse($addedInvoice->due_date)->format('d-m-Y') : ''}}
Bill No: {{ $addedInvoice->invoice_id ?? ''}}
Date: {{ $addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : '' }}
@php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach
S.No Description HSN Code Qty Rate Total
@if ($settings->whatsapp_config == 'A') @endif