@extends('layouts.admin') @section('content')

{{ __('Dashboard') }}

@if(Session::has('cache'))

{{ Session::get("cache") }}

@endif
{{ __('Active Customers') }}
{{count($acustomers)}}
{{ __('Blocked Customers') }}
{{ count($bcustomers) }}
{{ __('Total Blogs') }}
{{ count($blogs) }}
{{ __('Total Deposits') }}
{{ count($deposits) }}
{{ __('Total Loan') }}
{{ count(\App\Models\UserLoan::get()) }}
{{ __('Total Pending Loan') }}
{{ count(\App\Models\UserLoan::whereStatus(0)->get()) }}
{{ __('Total Running Loan') }}
{{ count(\App\Models\UserLoan::whereStatus(1)->get()) }}
{{ __('Total Paid Loan') }}
{{ count(\App\Models\UserLoan::whereStatus(3)->get()) }}
{{ __('Total Rejected Loan') }}
{{ count(\App\Models\UserLoan::whereStatus(2)->get()) }}
{{ __('Total DPS') }}
{{ count(\App\Models\UserDps::get()) }}
{{ __('Total Running DPS') }}
{{ count(\App\Models\UserDps::whereStatus(1)->get()) }}
{{ __('Total Matured DPS') }}
{{ count(\App\Models\UserDps::whereStatus(2)->get()) }}
{{ __('Total FDR') }}
{{ count(\App\Models\UserFdr::get()) }}
{{ __('Total Running FDR') }}
{{ count(\App\Models\UserFdr::whereStatus(1)->get()) }}
{{ __('Total Closed FDR') }}
{{ count(\App\Models\UserFdr::whereStatus(2)->get()) }}
{{ __('Total Transactions') }}
{{ count($transactions) }}
{{ __('Total Deposit Amount') }}
{{ showNameAmount($depositAmount) }}
{{ __('Total Withdraw Amount') }}
{{ showNameAmount($withdrawAmount) }}
{{ __('Total Withdraw Charge Amount') }}
{{ showNameAmount($withdrawChargeAmount) }}
@lang('Recent Joined Users')
@if (count($users)>0)
@foreach ($users as $key=>$data) @endforeach
@lang('Serial No') @lang('Name') @lang('Email') @lang('Status') @lang('Action')
{{ $loop->iteration}} {{ $data->name }} {{ $data->email }} {{ $data->is_banned == 0 ? 'activated' : 'deactivated'}} @lang('Detail')
@else

@lang('NO USER FOUND')

@endif
@endsection @section('scripts') @endsection