@extends('layouts.staff-new') @section('content') @php $staff = auth('staff')->user(); @endphp

Dashboard

{{strtoupper($staff->reference)}}

Reference Number

ACTIVE

Status

{{$staff->users()->count()}}

Accounts

@php $funds = $staff->funds()->whereNull('original_id'); @endphp
{{strtoupper($funds->count())}} ( ₦{{number_format($funds->sum('amount'), 2)}} )

Loans Funded

@php $acquiredFunds = $staff->funds()->whereNotNull('original_id'); @endphp
{{ $acquiredFunds->count() }} ( ₦{{number_format($acquiredFunds->sum('amount'), 2)}} )

Loans Acquired

@php $loanRequests = $staff->loanRequests(); @endphp
{{$loanRequests->count()}} ( ₦{{number_format($loanRequests->sum('amount'), 2)}} )

Loan Requests Placed

@endsection @section('page-js') @endsection