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

{{$addedInvoice->branch->company->address}}
Invoice To:
{{$addedInvoice->client->user->name ?? ''}}
{{$addedInvoice->client->user->location ?? ''}}
Invoice No: {{ $addedInvoice->invoice_id ?? ''}}
Date: {{ $addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : '' }}
Due Date: {{$addedInvoice->due_date ? \Carbon\Carbon::parse($addedInvoice->due_date)->format('d-m-Y') : ''}}
@php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; @endphp @foreach ($addedInvoice->invoiceItems as $index => $product) @php $total = $product->quantity * $product->price; $gstAmount = ($product->total * $product->invoiceItemTaxes->sum('tax')) / 100; $totalWithGst = $total + $gstAmount; $subtotal += $totalWithGst; $pageSubtotal += $totalWithGst; @endphp @if (($index + 1) % 25 == 0)
S.No Description HSN Code Qty Rate GST(%) Total
{{ $index + 1 }} {{ $product->product_name ?? '' }} {{ $product->products->code}} {{ $product->quantity . '(' . ($product->products->category->unitOfMass->name ?? '') . ')' ?? '' }} ₹ {{ number_format($product->price ?? '', 2) }} {{ number_format($product->invoiceItemTaxes->sum('tax') ?: 0, 2) }} @php $gstAmount = ($product->total * $product->invoiceItemTaxes->sum('tax')) / 100; $total = $product->total + $gstAmount; @endphp ₹ {{ number_format($total, 2) }}

...Continue

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

{{$addedInvoice->branch->company->address}}
Invoice To:
{{$addedInvoice->client->user->name ?? ''}}
{{$addedInvoice->client->user->location ?? ''}}
Invoice No: {{ $addedInvoice->invoice_id ?? ''}}
Date: {{ $addedInvoice->invoice_date ? \Carbon\Carbon::parse($addedInvoice->invoice_date)->format('d-m-Y') : '' }}
Due Date: {{$addedInvoice->due_date ? \Carbon\Carbon::parse($addedInvoice->due_date)->format('d-m-Y') : ''}}
@php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach
S.No Description HSN Code Qty Rate GST(%) Total
Print Invoice Download Invoice @if ($settings->whatsapp_config == 'A') Send Invoice @endif Back