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

Products Order's
Contact No: {{ $addedOrder->branch->company->phone ?? ''}}
To: {{$addedOrder->client->user->name ?? ''}}
Address: @php $address = $addedOrder->client->clientAddress->where('oprtnl_flag','A')->value('address') @endphp {{$address ?? ''}}
Order No: {{ $addedOrder->order_id ?? ''}}
Order Date: {{ $addedOrder->order_date ? \Carbon\Carbon::parse($addedOrder->order_date)->format('d-m-Y') : '' }}
@php $subtotal = 0; $pageSubtotal = 0; $pageCount = 0; @endphp @foreach ($addedOrder->ordersItem as $index => $product) @php $total = $product->quantity * $product->price; // $gstAmount = ($product->total * $product->quoteItemTaxes->sum('tax')) / 100; // $totalWithGst = $total + $gstAmount; $subtotal += $total; $pageSubtotal += $total; @endphp @if (($index + 1) % 20 == 0)
S.No Description HSN Code Qty Rate Total
{{ $index + 1 }} {{ $product->product_name ?? '' }} {{ $product->product->code}} {{ $product->quantity . '(' . ($product->product->category->unitOfMass->name ?? '') . ')' ?? '' }} ₹ {{ number_format($product->price ?? '', 2) }} @php $total = $product->total; @endphp ₹ {{ number_format($total, 2) }}

...Continue

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

Products Order's
Contact No: {{ $addedOrder->branch->company->phone ?? ''}}
To: {{$addedOrder->client->user->name ?? ''}}
Address: {{$address ?? ''}}
Order No: {{ $addedOrder->order_id ?? ''}}
Order Date: {{ $addedOrder->order_date ? \Carbon\Carbon::parse($addedOrder->order_date)->format('d-m-Y') : '' }}
@php $pageSubtotal = 0; $pageCount++; @endphp @endif @endforeach
S.No Description HSN Code Qty Rate Total