{{$globalSettings->company_name}}

Grand Payment Receivable
@php date_default_timezone_set("Asia/Dhaka"); @endphp Print Date: {{ date('F j, Y') }} {{ date('h:i:s a') }}

@if(isset($grandReceivable)) @php $final_balance = 0; @endphp @php $total = 0; @endphp @foreach($grandReceivable as $key => $data) @php $balance = $data->credit + $data->op_bal_credit - ($data->debit + $data->op_bal_debit); $total += $balance; @endphp @if($balance != 0) @php $total += $balance; @endphp @if($balance == 0) @elseif($balance < 0) @else($balance > 0) @endif @php $final_balance += $balance; @endphp @endif @endforeach @endif
Cust ID Name Mobile Address Balance
{{ "SFL-".str_pad($data->customer_code, 8, '0', STR_PAD_LEFT) }} {{ $data->customer_name }} {{ $data->mobile_no }} {{ $data->address }} 0.00 {{ number_format(abs($balance),2) }}{{ number_format($balance,2) }}
TOTAL {{ number_format(abs($final_balance),2) }}