@extends('layouts.millage') @section('title', 'Trade') @section('content')
{{-- Welcome Section --}}

Welcome to Trading

Experience real-time trading with advanced tools and analytics. Start trading with confidence using our intuitive platform.

{{-- Trading Stats Grid --}}
{{-- Total Trades --}}

Total Trades

{{ number_format($stats['total_trades']) }}

Lifetime trades
{{-- Win Rate --}}

Win Rate

{{ number_format($stats['win_rate'], 1) }}%

{{ $stats['win_rate'] > 50 ? 'Above average' : 'Keep improving' }}
{{-- Total Profit --}}

Total Profit

{{ $stats['total_profit'] >= 0 ? '+' : '' }}${{ number_format($stats['total_profit'], 2) }}

Overall performance
{{-- Account Balance --}}

Available Balance

${{ number_format($user->account_bal, 2) }}

Trading balance
{{-- Trading Pairs Section --}}

Available Trading Pairs

@foreach($pairs as $pair)
{{ $pair['name'] }} Logo

{{ $pair['name'] }}

{{ $pair['symbol'] }}

Current Price ${{ number_format($pair['price'] ?? 0, 2) }}
24h Change {{ ($pair['change_24h'] ?? 0) >= 0 ? '+' : '' }}{{ number_format($pair['change_24h'] ?? 0, 2) }}%
@endforeach
{{-- Navigation Buttons --}}
{{-- Pagination Dots
@foreach($pairs as $index => $pair) @endforeach
--}}
{{-- Recent Trades --}}

Recent Trades

View All
@forelse($recentTrades as $trade) @empty @endforelse
Time Pair Type Amount Result Profit/Loss
{{ $trade->created_at->diffForHumans() }} {{ $trade->pair }} {{ $trade->type }} ${{ number_format($trade->amount, 2) }} @if($trade->status === 'active')
Active
@elseif($trade->status === 'completed') {{ ucfirst($trade->result) }} @else {{ ucfirst($trade->status) }} @endif
@if($trade->status === 'completed') {{ $trade->profit_amount >= 0 ? '+' : '' }}${{ number_format($trade->profit_amount, 2) }} @else -- @endif

No trades yet

Start your trading journey today

Place Your First Trade
@endsection