@forelse($recentActivity as $activity)
{{ $activity['type'] === 'challenge' ? '⚔️' : '💰' }}
{{ $activity['description'] }}
{{ $activity['created_at']->diffForHumans() }}
@if($activity['amount'])
{{ $activity['amount'] > 0 ? '+' : '' }}₦{{ number_format(abs($activity['amount']), 2) }}
@endif
{{ $activity['action'] }}
@empty
📊
No recent activity found
@endforelse
@forelse($user->createdChallenges->concat($user->acceptedChallenges)->sortByDesc('created_at')->take(10) as $challenge)
Challenge #{{ $challenge->id }}
{{ $challenge->creator_id === $user->id ? 'Created' : 'Accepted' }}
{{ $challenge->created_at->diffForHumans() }}
₦{{ number_format($challenge->wager_amount, 2) }}
{{ ucfirst($challenge->status) }}
@empty
@endforelse
@forelse($user->walletTransactions->sortByDesc('created_at')->take(15) as $transaction)
{{ $transaction->description }}
{{ $transaction->created_at->diffForHumans() }}
{{ $transaction->amount > 0 ? '+' : '' }}₦{{ number_format(abs($transaction->amount), 2) }}
{{ ucfirst($transaction->type) }}
@empty
@endforelse