@if(!empty(\App\Models\Setting::where('setting_key','company_logo')->first()->setting_value)) @endif

{{\App\Models\Setting::where('setting_key','company_name')->first()->setting_value}}

{{trans_choice('general.receipt',1)}}

@if(!empty($loan_transaction->payment_detail)) @if(!empty($loan_transaction->payment_detail->type)) @endif @if(!empty($loan_transaction->payment_detail->account_number)) @endif @if(!empty($loan_transaction->payment_detail->cheque_number)) @endif @if(!empty($loan_transaction->payment_detail->routing_code)) @endif @if(!empty($loan_transaction->payment_detail->receipt_number)) @endif @if(!empty($loan_transaction->payment_detail->bank)) @endif @endif @foreach(\App\Models\CustomFieldMeta::where('category', 'repayments')->where('parent_id', $loan_transaction->id)->get() as $key) @if(!empty($key->custom_field)) @endif @endforeach

{{trans_choice('general.client',1)}}

@if($loan_transaction->loan->client_type=="client") @if($loan_transaction->loan->client->client_type=="individual")

{{$loan_transaction->loan->client->first_name}} {{$loan_transaction->loan->client->middle_name}} {{$loan_transaction->loan->client->last_name}}

@endif @if($loan_transaction->loan->client->client_type=="business")

{{$loan_transaction->loan->client->full_name}}

@endif @endif @if($loan_transaction->loan->client_type=="group")

{{$loan_transaction->loan->group->name}}

@endif

{{trans_choice('general.loan',1)}} #

{{$loan_transaction->loan->id}}

{{trans_choice('general.transaction',1)}} {{trans_choice('general.type',1)}}

@if($loan_transaction->transaction_type=='disbursement') {{trans_choice('general.disbursement',1)}} @endif @if($loan_transaction->transaction_type=='disbursement_repayment') {{trans_choice('general.disbursement',1)}} {{trans_choice('general.repayment',1)}} @endif @if($loan_transaction->transaction_type=='specified_due_date') {{trans_choice('general.specified_due_date',2)}} {{trans_choice('general.fee',1)}} @endif @if($loan_transaction->transaction_type=='installment_fee') {{trans_choice('general.installment_fee',2)}} @endif @if($loan_transaction->transaction_type=='overdue_installment_fee') {{trans_choice('general.overdue_installment_fee',2)}} @endif @if($loan_transaction->transaction_type=='loan_rescheduling_fee') {{trans_choice('general.loan_rescheduling_fee',2)}} @endif @if($loan_transaction->transaction_type=='overdue_maturity') {{trans_choice('general.overdue_maturity',2)}} @endif @if($loan_transaction->transaction_type=='disbursement_fee') {{trans_choice('general.disbursement',1)}} {{trans_choice('general.charge',2)}} @endif @if($loan_transaction->transaction_type=='interest') {{trans_choice('general.interest',1)}} {{trans_choice('general.applied',2)}} @endif @if($loan_transaction->transaction_type=='repayment') {{trans_choice('general.repayment',1)}} @endif @if($loan_transaction->transaction_type=='penalty') {{trans_choice('general.penalty',1)}} @endif @if($loan_transaction->transaction_type=='interest_waiver') {{trans_choice('general.interest',1)}} {{trans_choice('general.waiver',2)}} @endif @if($loan_transaction->transaction_type=='charge_waiver') {{trans_choice('general.charge',1)}} {{trans_choice('general.waiver',2)}} @endif @if($loan_transaction->transaction_type=='write_off') {{trans_choice('general.write_off',1)}} @endif @if($loan_transaction->transaction_type=='write_off_recovery') {{trans_choice('general.recovery',1)}} {{trans_choice('general.repayment',1)}} @endif

{{trans_choice('general.date',1)}}:

{{$loan_transaction->date}}

{{trans_choice('general.amount',1)}}

@if($loan_transaction->credit>$loan_transaction->debit) {{number_format($loan_transaction->credit,2)}} @else {{number_format($loan_transaction->debit,2)}} @endif

{{trans_choice('general.balance',1)}}

{{number_format(\App\Helpers\GeneralHelper::loan_total_balance($loan_transaction->loan->id),2)}}

{{trans_choice('general.payment',1)}} {{trans_choice('general.detail',2)}}

{{trans_choice('general.payment',1)}} {{trans_choice('general.type',1)}}

{{$loan_transaction->payment_detail->type->name}}

{{trans_choice('general.account',1)}}#

{{$loan_transaction->payment_detail->account_number}}

{{trans_choice('general.cheque',1)}}#

{{$loan_transaction->payment_detail->cheque_number}}

{{trans_choice('general.routing_code',1)}}#

{{$loan_transaction->payment_detail->routing_code}}

{{trans_choice('general.receipt',1)}}#

{{$loan_transaction->payment_detail->receipt_number}}

{{trans_choice('general.bank',1)}}#

{{$loan_transaction->payment_detail->bank}}

{{$key->custom_field->name}}:

@if($key->custom_field->field_type=="checkbox") @foreach(unserialize($key->name) as $v=>$k) {{$k}}
@endforeach @else {{$key->name}} @endif

{{trans_choice('general.transaction',1)}} {{trans_choice('general.id',1)}}

{{$loan_transaction->id}}

{{trans_choice('general.collected_by',1)}}:

@if(!empty($loan_transaction->created_by))

{{$loan_transaction->created_by->first_name}} {{$loan_transaction->created_by->last_name}}

@endif