{{-- Live ticker tape --}}
{{-- Greeting + quick actions --}}

Welcome back, {{ explode(' ', $user->name)[0] }}

Here's your portfolio at a glance.

{{-- Summary stats --}}
@php $cards = [ ['Wallet balance', '$' . number_format((float) $user->balance, 2), 'from-brand to-violet'], ['Total invested', '$' . number_format((float) $totalInvested, 2), 'from-sky-500 to-indigo-600'], ['Expected returns', '$' . number_format((float) $expectedReturns, 2), 'from-emerald-500 to-teal-600'], ['Active plans', (string) $activeCount, 'from-amber-400 to-orange-500'], ]; @endphp @foreach ($cards as [$label, $value, $grad])

{{ $label }}

{{ $value }}

@endforeach
{{-- Live chart + market overview --}}
{{-- Trading desks quick links --}}
@foreach ([['Stocks', 'Buy Tesla, Amazon & more', '📈', 'user.stocks'], ['Forex', 'Trade 60+ currency pairs', '💱', 'user.forex'], ['Crypto', 'Bitcoin, Ethereum & 200+', '₿', 'user.crypto']] as [$t, $d, $icon, $route]) {{ $icon }}

{{ $t }}

{{ $d }}

@endforeach
{{-- Recent activity + invest teaser --}}

Recent activity

View all
@forelse ($recentTransactions as $txn)

{{ $txn->type }}

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

{{ $txn->isCredit() ? '+' : '−' }}${{ number_format((float) $txn->amount, 2) }}
@empty

No activity yet. Make your first deposit to begin.

@endforelse