{{substr('0000'.$loan_transaction->borrower->id, strlen($loan_transaction->borrower->id)<=5?-5:-(strlen($loan_transaction->borrower->id)))}} |
{{$loan_transaction->borrower->first_name}} {{$loan_transaction->borrower->last_name}} |
{{currency_converter((\App\Models\LoanTransaction::where('loan_id', $loan_transaction->loan_id)->where('transaction_type', 'pay_off')->orderBy("id", 'desc')->first()->credit)-(\App\Models\LoanTransaction::where('loan_id', $loan_transaction->loan_id)->where('transaction_type', 'interest')->orderBy("id", 'desc')->first()->debit))}}
|
{{currency_converter(\App\Models\LoanTransaction::where('loan_id', $loan_transaction->loan_id)->where('transaction_type', 'interest')->orderBy("id", 'desc')->first()->debit)}}
|
|
{{$loan_transaction->borrower->notes}} |
@if($loan_transaction->credit>$loan_transaction->debit)
{{currency_converter($loan_transaction->credit)}}
@else
{{currency_converter($loan_transaction->debit)}}
@endif
|