@extends('core::layouts.master') @section('title') {{ trans_choice('loan::general.loan',2) }} @endsection @section('styles') @stop @section('content')

{{ trans_choice('loan::general.loan',2) }}

@foreach($data as $key) @endforeach
{{ trans_choice('core::general.id',1) }} {{ trans_choice('core::general.branch',1) }} {{ trans_choice('loan::general.loan_officer',1) }} {{ trans_choice('client::general.client',1) }} {{ trans_choice('core::general.amount',1) }} {{ trans_choice('loan::general.balance',1) }} {{ trans('loan::general.disbursed') }} {{ trans_choice('loan::general.product',1) }} {{ trans_choice('loan::general.status',1) }} {{ trans_choice('core::general.action',1) }}
{{$key->id}} {{$key->branch}} {{$key->loan_officer}} {{$key->client}} {{number_format($key->principal,2)}} {{number_format(($key->total_principal - $key->principal_repaid_derived - $key->principal_written_off_derived) + ($key->total_interest - $key->interest_repaid_derived - $key->interest_written_off_derived - $key->interest_waived_derived) + ($key->total_fees - $key->fees_repaid_derived - $key->fees_written_off_derived - $key->fees_waived_derived) + ($key->total_penalties - $key->penalties_repaid_derived - $key->penalties_written_off_derived - $key->penalties_waived_derived), $key->decimals)}} {{$key->disbursed_on_date}} {{$key->loan_product}} @if($key->status == 'pending') {{trans_choice('loan::general.pending_approval', 1)}} @endif @if($key->status == 'submitted') {{trans_choice('loan::general.pending_approval', 1)}} @endif @if($key->status == 'overpaid') {{trans_choice('loan::general.overpaid', 1)}} @endif @if($key->status == 'approved') {{trans_choice('loan::general.awaiting_disbursement', 1)}} @endif @if($key->status == 'active') {{trans_choice('loan::general.active', 1)}} @endif @if($key->status == 'rejected') {{trans_choice('loan::general.rejected', 1)}} @endif @if($key->status == 'withdrawn') {{trans_choice('loan::general.withdrawn', 1)}} @endif @if($key->status == 'written_off') {{trans_choice('loan::general.written_off', 1)}} @endif @if($key->status == 'closed') {{trans_choice('loan::general.closed', 1)}} @endif @if($key->status == 'pending_reschedule') {{trans_choice('loan::general.pending_reschedule', 1)}} @endif @if($key->status == 'rescheduled') {{trans_choice('loan::general.rescheduled', 1)}} @endif
@endsection @section('scripts') @endsection