@extends('layouts.master') @section('title') {{trans_choice('general.repayment',2)}} {{trans_choice('general.report',1)}} @endsection @section('content')

{{trans_choice('general.repayment',2)}} {{trans_choice('general.report',1)}} @if(!empty($start_date)) for period: {{$start_date}} to {{$end_date}} @endif

{{csrf_field()}}
{{trans_choice('general.reset',1)}}!
@if(!empty($start_date))
@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.office',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(!empty($key->office)) {{$key->office->name}} @endif @if($key->payment_apply_to=="regular") Full Payment @endif
Total {{number_format($total_principal+$total_interest+$total_fees+$total_penalty,$decimals)}}
@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.outstanding',1)}} {{trans_choice('general.balance',1)}} B/F {{trans_choice('general.date',1)}} {{trans_choice('general.status',1)}}