{{-- ─── Stats Row ──────────────────────────────────────────────────────────── --}}
{{-- ─── KYC banner ──────────────────────────────────────────────────────────── --}} @if($user->kyc_status?->value === 'not_verified')

Identity verification required

Complete KYC to unlock withdrawals and higher limits.

Verify now
@endif {{-- ─── Main grid ───────────────────────────────────────────────────────────── --}}
{{-- Recent Transactions --}}
@if($transactions->isEmpty()) @else
@foreach($transactions as $tx) @php $typeColors = [ 'deposit' => 'emerald', 'withdrawal' => 'red', 'roi' => 'blue', 'bonus' => 'violet', 'referral_bonus' => 'violet', 'plan_purchase'=> 'amber', 'stock_purchase'=> 'blue', 'stock_sale' => 'emerald', 'capital_return'=> 'blue', ]; $statusColors = [ 'completed' => 'emerald', 'pending' => 'amber', 'failed' => 'red', 'cancelled' => 'red', 'active' => 'blue', ]; $txStatus = $tx->status instanceof \BackedEnum ? $tx->status->value : (string) $tx->status; $txType = $tx->type instanceof \BackedEnum ? $tx->type->value : (string) $tx->type; $isCredit = in_array($txType, ['deposit','roi','bonus','referral_bonus','capital_return','stock_sale','withdrawal_reversal']); $color = $typeColors[$txType] ?? 'gray'; $statusColor = $statusColors[$txStatus] ?? 'gray'; $label = str_replace('_', ' ', $txType); @endphp

{{ $label }}

{{ $tx->created_at->format('M d, Y · H:i') }}

{{ $isCredit ? '+' : '-' }}${{ number_format($tx->amount, 2) }}

{{ $txStatus }}
@endforeach
@endif
{{-- Right column --}}
{{-- Active Investments --}} @if($activeInvestments->isEmpty())

No active investments.

Browse plans →
@else
@foreach($activeInvestments as $inv) @php $progress = 0; if ($inv->expires_at && $inv->created_at) { $total = $inv->created_at->diffInSeconds($inv->expires_at); $elapsed = $inv->created_at->diffInSeconds(now()); $progress = $total > 0 ? min(100, round(($elapsed / $total) * 100)) : 0; } @endphp

{{ $inv->plan->name ?? 'Plan' }}

${{ number_format($inv->amount, 2) }} invested

Active

{{ $progress }}% elapsed

@if($inv->expires_at)

Ends {{ \Carbon\Carbon::parse($inv->expires_at)->format('M d') }}

@endif
@endforeach
@endif
{{-- My NFTs summary --}} @if($myNfts->isEmpty())

You don't own any NFTs yet.

Browse the marketplace →
@else
@foreach($myNfts->take(4) as $nft)
{{ $nft->name }}

{{ $nft->name }}

{{ $nft->collection ?? 'NFT' }}

${{ number_format($nft->price, 2) }}

{{ $nft->status->value }}

@endforeach
@endif
{{-- Quick Actions --}}