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

{{@$branch['address']}}, {{@$branch['city']}}
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; $fuelAmount = ($amountAndService * $client->fchpercent)/100; $otherChAmount = $client->other_charge; $netAmount = $amountAndService + $fuelAmount + $otherChAmount; $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. Name GST No Invoice No. Invoice Date Invoice Value F. Ch. Total CGST SGST / UTGST IGST Grand Total
{{$srno}} @php if( strlen($client->name) > 17 ) { $client->name = substr($client->name,0, 17)."..."; } echo $client->name @endphp {{@$client->gstno}} {{$client->billno}} {{date("d/m/Y", strtotime($client->created_at))}} {{number_format($billAmount + $serviceChAmount + $otherChAmount, 2)}} {{number_format($fuelAmount, 2)}} {{number_format($netAmount, 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 Invoice Value {{number_format($totalAmount, 2)}}
Total Fuel Value {{number_format($totalFuel, 2)}}
Total CGST Invoice Value {{number_format($totalCGST, 2)}}
Total SGST / UTGST Invoice Value {{number_format($totalSGST, 2)}}
Total IGST Invoice Value {{number_format($totalIGST, 2)}}
Total Grand Invoice Value {{number_format($totalGrandAmount, 2)}}