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

{{ $addedInvoice->branch->company->address }},
Mail - {{ $addedInvoice->branch->company->email }}
@if ($addedInvoice->gst == 'Y') @endif
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($addedInvoice->client)->address ?? ''; @endphp {{ $address }}
Payment Terms: @if ($addedInvoice->payments->isNotEmpty()) @foreach ($addedInvoice->payments as $payment) {{ $payment->mode->name ?? 'N/A' }} @endforeach @else N/A @endif
Bill No: {{ $addedInvoice->invoice_id }}
Date: {{ $addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : '' }}
Cash Bill
@if ($addedInvoice->gst == 'Y') @endif @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 += $totalWithGst; $pageSubtotal += $totalWithGst; $totalGST += $gstAmount; @endphp @if ($addedInvoice->gst == 'Y') @endif @if (($index + 1) % 18 == 0)
S.No Description HSN Code Qty RateGST(%)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) }}{{ $gstRate }}%₹ {{ number_format($totalWithGst, 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 GST(%) Total
@if ($settings->whatsapp_config == 'A') @endif