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

{{@$branch['address']}}, {{@$branch['city']}}
Cargo Sales Report / {{date("M Y", strtotime($client_details[0]->created_at))}}
{{-- --}} @foreach($client_details as $client) @php $billAmount = $client->amount; $serviceChAmount = ($billAmount * $client->service_charge_percent)/100; $amountAndService = $billAmount + $serviceChAmount; $otherChAmount = $client->other_charge; $netAmount = $amountAndService + $otherChAmount; $grandTotal = (float) $client->grand_total; $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->bill_no}} @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($billAmount + $serviceChAmount + $otherChAmount, 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)}}