{{@$branch['person_name']}}
@endifM/s.
{{@$clientledgerData[0]->name}}Date. {{$today}}
Date | Remarks | Db.Amt. | Cr.Amt. | Balance | ||||||
---|---|---|---|---|---|---|---|---|---|---|
{{ date("d M Y", strtotime($clientledger->created_at)) }} | @if($clientledger->type == 'bill' && $clientledger->description == 'Opening Balance'){{$clientledger->description}} | @elseif($clientledger->type == 'bill')Bill No. {{$clientledger->description}} | @elseif($clientledger->type == 'cargo_bill')Cargo | Bill No. {{ $clientledger->description }} | @elseif($clientledger->type == 'income'){{$clientledger->description}} | @endif @if($clientledger->type == 'bill' || $clientledger->type == 'cargo_bill') @php $billAmount = $clientledger->amount; @endphp{{ number_format($billAmount, 2, ".", "") }} | @php $total_dr_amt += $billAmount; @endphp @else@endif @if($clientledger->type == 'income') @php $billAmount = $clientledger->amount; @endphp | {{ number_format($billAmount, 2, ".", "") }} | @php $total_cr_amt += $billAmount; @endphp @else@endif @if($clientledger->type == 'bill' || $clientledger->type == 'cargo_bill') @php $total_balance += $clientledger->amount; @endphp @elseif($clientledger->type == 'income') @php if ($clientledger->amount < 0) { $total_balance += $clientledger->amount; } else { $total_balance -= $clientledger->amount; } @endphp @endif @if($total_balance > 0) | {{ number_format($total_balance, 2, ".", "") . ' D' }} | @else{{ number_format($total_balance, 2, ".", "") . ' C' }} | @endif
Total Amount | {{number_format($total_dr_amt,2,".","")}} | {{number_format($total_cr_amt,2,".","")}} | {{number_format($finale_balance,2,".","")}} {{$type}} |
For, {{@$branch['name']}}
Autho / Sign.This is a system generated email, please do not reply.