@extends('layouts.backend.app') @push('main')
${!! number_format(\App\Models\User::sum('balance'),2) !!}
Total Balance
${!! number_format(\App\Models\Deposit::sum('amount'),2) !!}
Total Deposit
${!! number_format(\App\Models\Investments::sum('amount'),2) !!}
Total Investment
${!! number_format(\App\Models\Withdrawal::sum('amount'),2) !!}
Total Withdrawn
@endpush @push('content')
@php($sn =1) @foreach($investments as $value) @endforeach
SN Client Amount Package Reference Status Date Action
SN Client Amount Package Reference Status Date Action
{{ $sn++ }} {{ ucwords($value->user->name) }} - {{ $value->user->email }} ${{ number_format($value->amount,2) }} {{ $value->package->name }} {{ $value->reference }} {{ ucwords($value->status) }} {{ $value->updated_at }} View
@php($sn =1) @foreach($users as $value) @endforeach
SN Name Email Address Phone Number Account Type Action
SN Name Email Address Phone Number Account Type Action
{{ $sn++ }} {{ ucwords($value->name) }} {{ $value->email }} {{ $value->phone }} {{ $value->role_type }} Profile
@endpush