@extends('layouts.master') @section('title') {{translate('guarantor detail')}} @endsection @section('content')
@if(!empty($guarantor->photo)) user image @else user image @endif {{$guarantor->title}} . {{$guarantor->first_name}} {{$guarantor->last_name}} {{$guarantor->unique_number}}
{{translate('edit')}}
{{$guarantor->business_name}}, {{$guarantor->working_status}}
{{$guarantor->gender}} , {{date("Y-m-d")-$guarantor->dob}} {{translate('year')}}
{{translate('view guarantor file')}}
    @foreach(unserialize($guarantor->files) as $key=>$value)
  • {!! $value!!}
  • @endforeach
  • {{translate('address')}}: {{$guarantor->address}}
  • {{translate('city')}}: {{$guarantor->city}}
  • {{translate('state')}}: {{$guarantor->state}}
  • {{translate('zip')}}: {{$guarantor->zip}}
  • {{translate('country')}}: @if($guarantor->country) {{$guarantor->country->name}} @endif
  • {{translate('blacklisted')}}: @if($guarantor->blacklisted==1) {{translate('yes')}} @else {{translate('no')}} @endif
  • {{translate('custom_field')}}
  • @foreach($custom_fields as $key)
  • @if(!empty($key->custom_field)) {{$key->custom_field->name}}: @endif {{$key->name}}
  • @endforeach

{{translate('loan')}}

@foreach($guarantor->loans as $key) @if(!empty($key->loan)) @endif @endforeach
# {{translate('principal')}} {{translate('released')}} {{translate('interest')}}% {{translate('due')}} {{translate('paid')}} {{translate('balance')}} {{translate('status')}} {{ translate('action') }}
{{$key->loan->id}} {{currency_converter(\App\Helpers\GeneralHelper::loan_total_principal($key->loan->id))}} {{$key->loan->release_date}} {{round($key->loan->interest_rate)}}%/{{$key->loan->interest_period}} {{round(\App\Helpers\GeneralHelper::loan_total_due_amount($key->loan->id))}} {{round(\App\Helpers\GeneralHelper::loan_total_paid($key->loan->id))}} {{round(\App\Helpers\GeneralHelper::loan_total_balance($key->loan->id))}} @if($key->loan->maturity_dateloan->id)>0) {{translate('past_maturity')}} @else @if($key->loan->status=='pending') {{translate('pending approval')}} @endif @if($key->loan->status=='approved') {{translate('awaiting disbursement')}} @endif @if($key->loan->status=='disbursed') {{translate('active')}} @endif @if($key->loan->status=='declined') {{translate('declined')}} @endif @if($key->loan->status=='withdrawn') {{translate('withdrawn')}} @endif @if($key->loan->status=='written_off') {{translate('written_off')}} @endif @if($key->loan->status=='closed') {{translate('closed')}} @endif @if($key->loan->status=='pending_reschedule') {{translate('pending reschedule')}} @endif @if($key->loan->status=='rescheduled') {{translate('rescheduled')}} @endif @endif
@endsection @section('footer-scripts') @endsection