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

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

{{number_format($data->total())}} {{ trans_choice('loan::general.loan',2) }} {{ trans_choice('core::general.found',1) }}

@foreach($data as $key)
{{$key->branch}}
{{$key->loan_officer}}
{{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
@endforeach
{{$data->links()}}
{{ trans_choice('core::general.page',1) }} {{$data->currentPage()}} {{ trans_choice('core::general.of',1) }} {{$data->lastPage()}}
@endsection @section('scripts') @endsection