← Back to users {{-- Header --}}
{{ strtoupper(substr($user->name, 0, 1)) }}

{{ $user->name }}

@if ($user->isBlocked()) Blocked @endif @if ($user->email_verified_at) Verified @else Pending @endif

{{ $user->email }}

{{-- Quick actions --}}
@csrf
Edit
@csrf
{{-- Mini nav (tabs) --}}
@foreach (['overview' => 'Overview', 'transactions' => 'Transactions', 'investments' => 'Investments', 'deposits' => 'Deposits', 'manage' => 'Manage'] as $key => $label) @endforeach
{{-- ===== OVERVIEW ===== --}}
@php $stats = [ ['Wallet balance', '$'.number_format((float) $user->balance, 2), 'from-brand to-violet'], ['Active invested', '$'.number_format((float) $totalInvested, 2), 'from-sky-500 to-indigo-600'], ['Total deposits', '$'.number_format((float) $depositsTotal, 2), 'from-emerald-500 to-teal-600'], ['Total withdrawals', '$'.number_format((float) $withdrawalsTotal, 2), 'from-amber-400 to-orange-500'], ]; @endphp @foreach ($stats as [$label, $value, $grad])

{{ $label }}

{{ $value }}

@endforeach

Joined

{{ $user->created_at->format('M j, Y') }}

Status

{{ $user->isBlocked() ? 'Blocked' : 'Active' }}

Email

{{ $user->email_verified_at ? 'Verified' : 'Unverified' }}

{{-- Adjust funds --}}

Adjust wallet

@csrf
$
{{-- ===== TRANSACTIONS ===== --}} {{-- ===== INVESTMENTS ===== --}} {{-- ===== DEPOSITS ===== --}} {{-- ===== MANAGE ===== --}}