@if(@$branch['image']) @endif

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

{{@$branch['address']}}, {{@$branch['city']}}
Bill Ledger / {{date("d M Y", strtotime($start_date))}} - {{date("d M Y", strtotime($end_date))}}
@if( $client_id != '' || $client_id != null )

M/s.

{{ $bills[0]->name }} @endif

Date. {{$today}}

@foreach($bills as $bill) @php $bill_amount = $bill->amount; $fuel_amount = 0; if (!is_null($bill->fchpercent) && $bill->fchpercent != '') { $fuel_per = $bill->fchpercent; $fuel_amount = ($bill_amount * $fuel_per) / 100; } $cgst_per = $bill->cgstpercent; $sgst_per = $bill->sgstpercent; $igst_per = $bill->igstpercent; $cgst_amount = (($bill_amount + $fuel_amount) * $cgst_per) / 100; $sgst_amount = (($bill_amount + $fuel_amount) * $sgst_per) / 100; $igst_amount = (($bill_amount + $fuel_amount) * $igst_per) / 100; $totalBeforeRound = $bill_amount + $fuel_amount + $cgst_amount + $sgst_amount + $igst_amount; $roundBillSetting = $bill->is_rounded_bill_amounts; $roundingAmount = (float) $bill->rounding_amount; $grandTotal = (float) $bill->grandtotal; if ($roundBillSetting == 0 && $roundingAmount !== null) { $grandTotalAmount = $grandTotal - $roundingAmount; } elseif ($roundBillSetting == 1) { $ceilAmount = ceil($grandTotal); $floorAmount = floor($grandTotal); $roundValue = $ceilAmount - $grandTotal; $grandTotalAmount = ($roundValue < 0.50) ? $ceilAmount : $floorAmount; } else { $grandTotalAmount = $grandTotal; } $grandTotalAmount = floatval(number_format($grandTotalAmount, 2, '.', '')); $finale_amt += $grandTotalAmount; @endphp @php $srno++; @endphp @endforeach
Sr Bill No. Name Date Amount Fuel Ch. CGST SGST / UTGST IGST Grand Total
{{$srno}} {{$bill->billno}} {{$bill->name}} {{date("d/m/Y", strtotime($bill->date))}} {{ number_format($bill_amount,2) }} {{ number_format($fuel_amount,2) }} {{ number_format($cgst_amount,2) }} {{ number_format($sgst_amount,2) }} {{ number_format($igst_amount,2) }} {{ number_format($grandTotalAmount, 2) }}
TOTAL AMOUNT {{ Laracore::showPrice($finale_amt) }}

(Rupees in words){{getIndianCurrency($finale_amt)}}

For, {{@$branch['name']}}

Autho / Sign.