{{\Modules\Setting\Entities\Setting::where('setting_key','core.company_name')->first()->setting_value}}

{{trans_choice('loan::general.repayment',2)}}

@foreach($data as $key) @endforeach
@if(!empty($data->first()) && !empty($branch_id)) {{trans_choice('core::general.branch',1)}}: {{$data->first()->branch}} @endif @if(!empty($data->first()) && !empty($loan_product_id)) {{trans_choice('loan::general.product',1)}}: {{$data->first()->loan_product}} @endif @if(!empty($data->first()) && !empty($loan_officer_id)) {{trans_choice('loan::general.officer',1)}}: {{$data->first()->loan_officer}} @endif {{trans_choice('core::general.start_date',1)}}: {{$start_date}} {{trans_choice('core::general.end_date',1)}}: {{$end_date}}
{{trans_choice('core::general.id',1)}} {{trans_choice('client::general.client',1)}} {{trans_choice('loan::general.loan',1)}}# {{trans_choice('loan::general.loan',1)}} {{trans_choice('loan::general.officer',1)}} {{trans_choice('loan::general.principal',1)}} {{ trans_choice('loan::general.interest',1) }} {{trans_choice('loan::general.fee',2)}} {{ trans_choice('loan::general.penalty',2) }} {{ trans_choice('loan::general.total',1) }} {{ trans_choice('core::general.date',1) }} {{ trans_choice('core::general.payment',1) }} {{ trans_choice('core::general.type',1) }}
{{ $key->id }} {{$key->client}} {{ $key->loan_id }} {{ $key->loan_officer }} {{ number_format( $key->principal_repaid_derived,2) }} {{ number_format( $key->interest_repaid_derived,2) }} {{ number_format( $key->fees_repaid_derived,2) }} {{ number_format( $key->penalties_repaid_derived,2) }} {{ number_format( $key->principal_repaid_derived+$key->interest_repaid_derived+$key->fees_repaid_derived+$key->penalties_repaid_derived,2) }} {{ $key->submitted_on }} {{ $key->payment_type }}
{{trans_choice('core::general.total',1)}} {{number_format($total_principal,2)}} {{number_format($total_interest,2)}} {{number_format($total_fees,2)}} {{number_format($total_penalties,2)}} {{number_format($total_principal+$total_interest+$total_fees+$total_penalties,2)}}