@extends('core::layouts.master') @section('title') {{ trans_choice('dashboard::general.dashboard',1) }} @endsection @section('content')
{{ trans_choice('loan::general.total',1) }} {{ trans_choice('loan::general.loan',2) }} {{number_format(\Modules\Loan\Entities\Loan::where('client_id',session('client_id'))->count())}}
{{ trans_choice('loan::general.loan',2) }} {{ trans_choice('loan::general.disbursed',2) }} {{number_format(\Modules\Loan\Entities\Loan::where('status','active')->where('client_id',session('client_id'))->sum('principal'))}}
{{ trans_choice('loan::general.total',1) }} {{ trans_choice('savings::general.savings',2) }} {{number_format(\Modules\Savings\Entities\Savings::where('client_id',session('client_id'))->count())}}
{{ trans_choice('savings::general.savings',1) }} {{ trans_choice('savings::general.balance',2) }} {{number_format(\Modules\Savings\Entities\Savings::where('client_id',session('client_id'))->sum('balance_derived'))}}
@stop