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

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

{{csrf_field()}}
@if(!empty($start_date))
@foreach($data as $key)
{{trans_choice('general.disbursed',1)}} {{trans_choice('general.loan',2)}} {{trans_choice('general.report',1)}}
{{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.outstanding',1)}}
{{trans_choice('general.client',1)}} ID {{trans_choice('general.client',1)}} {{trans_choice('general.name',1)}} {{trans_choice('general.dob',2)}} {{trans_choice('general.gender',2)}} {{trans_choice('general.account',2)}} {{trans_choice('general.office',1)}} {{trans_choice('general.product',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.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.loan',1)}} {{trans_choice('general.officer',1)}} {{trans_choice('general.fund',1)}} {{trans_choice('general.disbursed',1)}} {{trans_choice('general.installment',2)}} {{trans_choice('general.loan',1)}} {{trans_choice('general.frequency',1)}} {{trans_choice('general.status',1)}} TRP {{trans_choice('general.loan',1)}} {{trans_choice('general.purpose',1)}} {{trans_choice('general.payment',1)}} {{trans_choice('general.type',1)}} {{trans_choice('general.maturity',1)}} {{trans_choice('general.date',1)}} {{trans_choice('general.arrears',1)}} {{trans_choice('general.amount',1)}} {{trans_choice('general.day',2)}} {{trans_choice('general.in',1)}} {{trans_choice('general.arrears',1)}}
@if($key->client_type=="client") @if(!empty($key->client)) {{$key->client->id}} @endif @endif @if($key->client_type=="group") @if(!empty($key->group)) {{$key->group->id}} @endif @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($key->client_type=="client") @if(!empty($key->client)) @if($key->client->client_type=="individual") {{$key->client->dob}} @endif @if($key->client->client_type=="business") @endif @endif @endif @if($key->client_type=="client") @if(!empty($key->client)) @if($key->client->client_type=="individual") @if($key->client->gender=="male") {{trans_choice('general.male',1)}} @endif @if($key->client->gender=="female") {{trans_choice('general.female',1)}} @endif @if($key->client->gender=="other") {{trans_choice('general.other',1)}} @endif @if($key->client->gender=="unspecified") {{trans_choice('general.unspecified',1)}} @endif @endif @endif @endif {{$key->id}} @if(!empty($key->office)) {{$key->office->name}} @endif @if(!empty($key->loan_product)) {{$key->loan_product->name}} @endif {{number_format($principal,2)}} {{number_format($interest,$key->decimals)}} {{number_format($fees,$key->decimals)}} {{number_format($penalty,$key->decimals)}} {{number_format($amount,$key->decimals)}} {{number_format($principal - $principal_paid,$key->decimals)}} {{number_format($interest - $interest_paid,$key->decimals)}} {{number_format($fees - $fees_paid,$key->decimals)}} {{number_format($penalty - $penalty_paid,$key->decimals)}} {{number_format($balance,$key->decimals)}} @if(!empty($key->loan_officer)) {{$key->loan_officer->first_name}} {{$key->loan_officer->last_name}} @endif @if(!empty($key->fund)) {{$key->fund->name}} @endif {{$key->disbursement_date}} {{$installments}} {{$key->repayment_frequency}} @if($key->repayment_frequency_type=="days") {{trans_choice('general.day',2)}} @endif @if($key->repayment_frequency_type=="weeks") {{trans_choice('general.week',2)}} @endif @if($key->repayment_frequency_type=="months") {{trans_choice('general.month',2)}} @endif @if($key->repayment_frequency_type=="years") {{trans_choice('general.year',2)}} @endif @if($key->status=="disbursed") {{trans_choice('general.disbursed',1)}} @endif @if($key->status=="closed") {{trans_choice('general.closed',1)}} @endif @if($key->status=="written_off") {{trans_choice('general.written_off',1)}} @endif @if($key->status=="rescheduled") {{trans_choice('general.rescheduled',1)}} @endif {{$percentage}}% @if(!empty($key->loan_purpose)) {{$key->loan_purpose->name}} @endif