@extends('layouts.millage') @section('title', 'Trade') @section('content')
{{-- Header Stats Bar --}}
{{-- Pair Selector --}}
@php $currentPairData = collect($pairs)->firstWhere('symbol', $pair); @endphp @if($currentPairData) {{ $pair }} Icon @endif {{ $pair }}
{{-- Price and Change --}}
{{ $pair }} Price
${{ number_format($currentPrice, 2) }}
24h Change
{{ $stats['changePercent'] >= 0 ? '+' : '' }}{{ number_format($stats['changePercent'], 2) }}%
{{-- Volume Info --}}
{{-- Main Content --}}
{{-- Chart Section --}}
{{-- Timeframe Selector --}}
@foreach($timeframes as $tf => $label) @endforeach
{{-- Trading Stats --}}
{{-- TradingView Chart --}}
{{-- Trading Panel --}}
{{-- Balance Display --}}
Available Balance
${{ number_format($user->account_bal, 2) }}
{{-- Trade Type Selection --}}
{{-- Amount Input --}}
{{-- Quick Amount Buttons --}}
@foreach([100, 250, 500, 1000] as $quickAmount) @endforeach
{{-- Duration Selection --}}
@foreach(['1m', '5m', '15m', '30m', '1h', '4h', '1d'] as $dur) @endforeach
{{-- Profit Calculator --}}
Profit {{ $profit_percentage }}%
Potential Return: $0.00
{{-- Place Trade Button --}}
{{-- 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
{{-- Error Modal --}} @endsection