@php $isCrypto = $market === 'crypto'; @endphp

{{ $config['eyebrow'] }}

{{ $config['heading'] }}

Balance ${{ number_format((float) $user->balance, 2) }}
{{-- Live ticker tape (real-time prices) --}}
{{-- Live chart --}}
{{-- Open positions --}} @if ($positions->isNotEmpty())

Your {{ $config['title'] }} positions

@foreach ($positions as $position) @php $pl = (float) $position->profit; @endphp

{{ $position->symbol }}

{{ $position->name ?? 'Open position' }}

Open

Invested

${{ number_format((float) $position->amount, 2) }}

Profit / loss

{{ $pl >= 0 ? '+' : '-' }}${{ number_format(abs($pl), 2) }}

Current value ${{ number_format($position->currentValue(), 2) }}
@endforeach
@endif {{-- Asset list with trade forms --}}

Markets

@foreach ($config['assets'] as [$symbol, $name, $price, $change, $up, $grad]) @php $base = \Illuminate\Support\Str::of($symbol)->before('/')->upper()->value(); @endphp
{{ \Illuminate\Support\Str::substr($base, 0, 4) }}

{{ $symbol }}

{{ $name }}

@if ($isCrypto)

${{ $price }}

{{ $change }}

@endif
@csrf
$
@endforeach

Live prices are sourced from {{ $isCrypto ? 'Binance' : 'TradingView' }} in real time. Executed trades settle from your wallet balance.