@extends('layouts.master') @section('title') {{translate('borrower detail')}} @endsection @section('content') @if($borrower->blacklisted==1)
{{translate('blacklist_notification')}}
@endif
{{translate('basic detail')}}
{{translate('business')}} {{$borrower->business_name}}
{{translate('working_status')}} {{$borrower->working_status}}
{{translate('dob')}} {{$borrower->dob}}
{{translate('address')}} {{$borrower->address}}
{{translate('city')}} {{$borrower->city}}
{{translate('state')}} {{$borrower->state}}
{{translate('zip')}} {{$borrower->zip}}
{{translate('country')}} @if($borrower->country) {{$borrower->country->name}} @endif
{{translate('contact detail')}}
{{translate('phone')}} {{$borrower->phone}}
{{translate('email')}} {{$borrower->email}}
{{translate('mobile')}} {{$borrower->mobile}}
{{translate('file')}}
{{translate('view borrower file')}}
    @foreach(unserialize($borrower->files) as $key=>$value)
  • {!! $value!!}
  • @endforeach
{{translate('custom_field')}}
@foreach($custom_fields as $key) @endforeach
@if(!empty($key->custom_field)) {{$key->custom_field->name}}: @endif {{$key->name}}

{{translate('loan')}}

@foreach($borrower->loans as $index => $key) @endforeach
# {{translate('id')}} {{translate('principal')}} {{translate('released')}} {{translate('interest')}}% {{translate('due')}} {{translate('paid')}} {{translate('balance')}} {{translate('status')}} {{ translate('action') }}
{{$index+1}} {{$key->id}} {{currency_converter($key->principal,2)}} {{$key->release_date}} {{round($key->interest_rate)}}%/{{$key->interest_period}} {{currency_converter(round(\App\Helpers\GeneralHelper::loan_total_due_amount($key->id)),2)}} {{currency_converter(round(\App\Helpers\GeneralHelper::loan_total_paid($key->id)),2)}} {{currency_converter(round(\App\Helpers\GeneralHelper::loan_total_balance($key->id)),2)}} @if($key->maturity_dateid)>0) {{translate('past_maturity')}} @else @if($key->status=='pending') {{translate('pending approval')}} @endif @if($key->status=='approved') {{translate('awaiting disbursement')}} @endif @if($key->status=='disbursed') {{translate('active')}} @endif @if($key->status=='declined') {{translate('declined')}} @endif @if($key->status=='withdrawn') {{translate('withdrawn')}} @endif @if($key->status=='written_off') {{translate('written_off')}} @endif @if($key->status=='closed') {{translate('closed')}} @endif @if($key->status=='pending_reschedule') {{translate('pending reschedule')}} @endif @if($key->status=='rescheduled') {{translate('rescheduled')}} @endif @endif

{{translate('repayment')}}

@foreach(\App\Models\LoanTransaction::where('borrower_id',$borrower->id)->where('transaction_type','repayment')->where('reversed',0)->get() as $index=> $key) @endforeach
# {{translate('collection date')}} {{translate('collected_by')}} {{translate('method')}} {{translate('amount')}} {{translate('action')}}
{{$index+1}} {{$key->date}} @if(!empty($key->user)) {{$key->user->first_name}} {{$key->user->last_name}} @endif @if(!empty($key->loan_repayment_method)) {{$key->loan_repayment_method->name}} @endif {{currency_converter($key->credit)}}
@endsection @section('footer-scripts') @endsection