{{@$branch['person_name']}}

{{@$branch['address']}}, {{@$branch['city']}}
Sales Report / {{date("M Y", strtotime($client_details[0]->created_at))}}
{{-- --}} @foreach($client_details as $client) @php $fualAount = ($client->amount * $client->fchpercent) / 100; $netAmount = $client->amount + $fualAount; $grandTotal = (float) $client->grandtotal; $roundingAmount = (float) $client->rounding_amount; $roundSetting = (int) $client->is_rounded_bill_amounts; if ($roundSetting === 0 && $roundingAmount !== null) { $finalGrandTotal = $grandTotal - $roundingAmount; } elseif ($roundSetting === 1) { $ceilAmount = ceil($grandTotal); $floorAmount = floor($grandTotal); $roundValue = $ceilAmount - $grandTotal; $finalGrandTotal = ($roundValue < 0.50) ? $ceilAmount : $floorAmount; } else { $finalGrandTotal = $grandTotal; } @endphp {{-- --}} @endforeach
Sr. No. Bill No. Name Phone GST No Date Weight AmountF. Ch.CGST SGST / UTGST IGST Grand Total
{{$srno}} {{$client->billno}} @php if( strlen($client->name) > 17 ) { $client->name = substr($client->name,0, 17)."..."; } echo $client->name @endphp {{@$client->phone1}} {{@$client->gstno}} {{date("d/m/Y", strtotime($client->created_at))}} {{GetPrice($client->weight/1000, 3)}} {{number_format($client->amount, 2)}}{{number_format(($client->amount * $client->fchpercent)/100, 2)}}{{number_format(($netAmount * $client->cgstpercent)/100, 2)}} {{number_format(($netAmount * $client->sgstpercent)/100, 2)}} {{number_format(($netAmount * $client->igstpercent)/100, 2)}} {{number_format($finalGrandTotal, 2)}}
Total Amount {{number_format($totalAmount, 2)}}
Total CGST Amount {{number_format($totalCGST, 2)}}
Total SGST / UTGST Amount {{number_format($totalSGST, 2)}}
Total IGST Amount {{number_format($totalIGST, 2)}}
Total Grand Amount {{number_format($totalGrandAmount, 2)}}