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

{{trans_choice('general.arrears',1)}} {{trans_choice('general.report',1)}} @if(!empty($end_date)) as at: {{$end_date}} @endif

{{csrf_field()}}
@if(!empty($end_date))
@foreach($data as $key) @if($amount_in_arrears >0) @endif @endforeach
{{trans_choice('general.arrears',1)}} {{trans_choice('general.report',1)}}
{{trans_choice('general.date',1)}} : {{$end_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.loan',1)}} {{trans_choice('general.officer',1)}} {{trans_choice('general.office',1)}} {{trans_choice('general.client',1)}} {{trans_choice('general.phone',1)}} {{trans_choice('general.loan',1)}} {{trans_choice('general.id',1)}} {{trans_choice('general.product',1)}} {{trans_choice('general.amount',1)}} {{trans_choice('general.disbursed',1)}} {{trans_choice('general.maturity',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.remaining',1)}} {{trans_choice('general.principal',1)}} {{trans_choice('general.interest',1)}} {{trans_choice('general.fee',2)}} {{trans_choice('general.penalty',1)}} {{trans_choice('general.outstanding',1)}} {{trans_choice('general.due',1)}} % {{trans_choice('general.day',2)}} {{trans_choice('general.in',2)}} {{trans_choice('general.arrears',2)}} {{trans_choice('general.day',2)}} {{trans_choice('general.since',1)}} {{trans_choice('general.payment',1)}}
@if(!empty($key->loan_officer)) {{$key->loan_officer->first_name}} {{$key->loan_officer->last_name}} @endif @if(!empty($key->office)) {{$key->office->name}} @endif @if($key->client_type=="client") @if(!empty($key->client)) @if($key->client->client_type=="individual") {{$key->client->first_name}} {{$key->client->middle_name}} {{$key->client->last_name}} @endif @if($key->client->client_type=="business") {{$key->client->full_name}} @endif @endif @endif @if($key->client_type=="group") @if(!empty($key->group)) {{$key->group->name}} @endif @endif @if(!empty($key->client)) {{$key->client->mobile}} @endif @if(!empty($key->group)) {{$key->group->mobile}} @endif {{$key->id}} @if(!empty($key->loan_product)) {{$key->loan_product->name}} @endif {{number_format($key->principal,2)}} {{$key->disbursement_date}} {{$key->expected_maturity_date}} {{$remaining_days}} {{number_format($principal,$key->decimals)}} {{number_format($interest,$key->decimals)}} {{number_format($fees,$key->decimals)}} {{number_format($penalty,$key->decimals)}} {{number_format($balance,$key->decimals)}} {{number_format($amount_in_arrears,$key->decimals)}} {{round($amount_in_arrears*100/$balance,2)}} {{$days_in_arrears}} {{$days_since_last_payment}}
{{number_format($total_amount,2)}} {{number_format($total_principal,2)}} {{number_format($total_interest,2)}} {{number_format($total_fees,2)}} {{number_format($total_penalty,2)}} {{number_format($total_outstanding,2)}} {{number_format($total_due,2)}}
@endif @endsection @section('footer-scripts') @endsection