@if (session()->has('message')) @endif
{{ '@' . $user->username }}

Portfolio Value

{{ $currency }} {{ number_format($user->balance, 2) }}

+{{ $currency }} {{ number_format($user->total_earnings, 2) }} Total Earnings

Active Bets

{{ $bets->where('status', 'Active')->count() }}

Win Rate

{{ $bets->whereIn('status', ['Won', 'Lost'])->count() > 0 ? round(($bets->where('status', 'Won')->count() / $bets->whereIn('status', ['Won', 'Lost'])->count()) * 100, 1) : 0 }}%

@if(count($bets) > 0)
@foreach($bets as $bet)

{{ $bet->event->title }}

{{ $bet->status }}

{{ $bet->prediction }}

Stake: {{ $currency }} {{ number_format($bet->amount, 2) }}
Potential: {{ $currency }} {{ number_format($bet->potential_payout, 2) }}

{{ $bet->created_at->format('M d, Y') }}

{{ $bet->created_at->format('H:i A') }}

@endforeach
@else

No betting history

Start by placing your first bet on any active market to see your betting history here.

@endif
@if(count($transactions) > 0)
@foreach($transactions as $transaction)
@if($transaction->type == 'Deposit') @elseif($transaction->type == 'Win') @else @endif

{{ ucfirst($transaction->type) }}

{{ $transaction->status }} {{ $transaction->created_at->format('M d, Y • H:i') }}

{{ $transaction->type == 'Deposit' || $transaction->type == 'Win' ? '+' : '' }}{{ number_format($transaction->amount, 2) }} {{ $currency }}

@endforeach
@else

No transactions yet

Your deposits, withdrawals, and winnings will appear here once you start trading.

@endif