@foreach($data as $key) @endforeach
{{trans_choice('general.loan',1)}} {{trans_choice('general.repayment',2)}}
{{trans_choice('general.from',1)}} : {{$start_date}} {{trans_choice('general.report',1)}} {{trans_choice('general.run',1)}} {{trans_choice('general.date',1)}} : {{date("Y-m-d H:i:s")}}
{{trans_choice('general.to',1)}} : {{$end_date}}
{{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.principal',1)}} {{trans_choice('general.interest',1)}} {{trans_choice('general.fee',2)}} {{trans_choice('general.penalty',2)}} {{trans_choice('general.total',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.channel',1)}}
{{$key->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,$decimals)}} {{number_format($interest,$decimals)}} {{number_format($fees,$decimals)}} {{number_format($penalty,$decimals)}} {{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
{{number_format($total_principal,$decimals)}} {{number_format($total_interest,$decimals)}} {{number_format($total_fees,$decimals)}} {{number_format($total_penalty,$decimals)}} {{number_format($total_principal+$total_interest+$total_fees+$total_penalty,$decimals)}}