{{\App\Models\Office::find($office_id)->name}} - Repayment Reports


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

{{\App\Models\Office::find($office_id)->name}}
from: {{$start_date}} to {{$end_date}}

Full Repayments


@foreach($data as $key) @endforeach
{{trans_choice('general.id',1)}} {{trans_choice('general.client',1)}} {{trans_choice('general.loan',1)}}# {{trans_choice('general.loan',1)}} {{trans_choice('general.officer',1)}} {{trans_choice('general.amount',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.channel',1)}} {{trans_choice('general.apply',1)}} {{trans_choice('general.to',1)}}
{{$key->loan->client->external_id}} @if(!empty($key->loan)) @if($key->loan->client_type=="client") @if(!empty($key->loan->client)) @if($key->loan->client->client_type=="individual") {{$key->loan->client->first_name}} {{$key->loan->client->middle_name}} {{$key->loan->client->last_name}} @endif @if($key->loan->client->client_type=="business") {{$key->loan->client->full_name}} @endif @endif @endif @if($key->loan->client_type=="group") @if(!empty($key->loan->group)) {{$key->loan->group->name}} @endif @endif @endif {{$key->loan->id}} @if(!empty($key->loan)) @if(!empty($key->loan->loan_officer)) {{$key->loan->loan_officer->first_name}} {{$key->loan->loan_officer->last_name}} @endif @endif {{number_format($principal+$interest+$fees+$penalty,$decimals)}} {{$key->date}} @if(!empty($key->payment_detail)) @if(!empty($key->payment_detail->type)) {{$key->payment_detail->type->name}} @endif @endif @if($key->payment_apply_to=="regular") Full Payment @endif
Total {{number_format($total_principal+$total_interest+$total_fees+$total_penalty,$decimals)}}

Part Repayments


@foreach($part_data as $key) @endforeach
{{trans_choice('general.id',1)}} {{trans_choice('general.client',1)}} {{trans_choice('general.loan',1)}}# {{trans_choice('general.loan',1)}} {{trans_choice('general.officer',1)}} {{trans_choice('general.amount',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.channel',1)}} {{trans_choice('general.apply',1)}} {{trans_choice('general.to',1)}}
{{$key->loan->client->external_id}} @if(!empty($key->loan)) @if($key->loan->client_type=="client") @if(!empty($key->loan->client)) @if($key->loan->client->client_type=="individual") {{$key->loan->client->first_name}} {{$key->loan->client->middle_name}} {{$key->loan->client->last_name}} @endif @if($key->loan->client->client_type=="business") {{$key->loan->client->full_name}} @endif @endif @endif @if($key->loan->client_type=="group") @if(!empty($key->loan->group)) {{$key->loan->group->name}} @endif @endif @endif {{$key->loan->id}} @if(!empty($key->loan)) @if(!empty($key->loan->loan_officer)) {{$key->loan->loan_officer->first_name}} {{$key->loan->loan_officer->last_name}} @endif @endif {{number_format($principal+$interest+$fees+$penalty,$decimals)}} {{$key->date}} @if(!empty($key->payment_detail)) @if(!empty($key->payment_detail->type)) {{$key->payment_detail->type->name}} @endif @endif @if($key->payment_apply_to=="principal") Principal @endif @if($key->payment_apply_to=="interest") Interest @endif
Total {{number_format($total_principal+$total_interest+$total_fees+$total_penalty,$decimals)}}

Reloans


@foreach($reloans_data as $key)
{{trans_choice('general.id',1)}} {{trans_choice('general.client',1)}} {{trans_choice('general.loan',1)}}# {{trans_choice('general.loan',1)}} {{trans_choice('general.officer',1)}} {{trans_choice('general.interest',1)}} {{trans_choice('general.paid',1)}} {{trans_choice('general.balance',1)}} B/F {{trans_choice('general.date',1)}} {{trans_choice('general.status',1)}}