@extends('layouts.millage') @section('title', 'Copy Trade') @section('content')
{{-- Header Section with Summary Stats --}}

Copy Trading

Mirror the trades of successful traders automatically.

Total Profit/Loss
{{ $totalProfit >= 0 ? '+' : '' }}${{ number_format($totalProfit, 2) }}
Success Rate
{{ number_format($successRate, 1) }}%
Active Copies
{{ count($copyingTraders) }}
{{-- Filter Section --}}
{{-- Traders Grid --}}
@foreach($traders as $trader)
{{-- Trader Header --}}
@if($trader->profile_photo_path) {{ $trader->name }} @else
@endif @if($trader->trader_type)
{{ $trader->trader_type->label() }}
@endif

{{ $trader->name }} @if($trader->trader_type === 'vip' || $trader->trader_type === 'expert') @endif

Joined {{ $trader->created_at->diffForHumans() }}

{{-- Trader Stats --}}
Total Profit
+${{ number_format($trader->total_profit, 2) }}
ROI
{{ number_format($trader->roi, 2) }}%
{{ $trader->total_wins }}
Won
{{ $trader->total_losses }}
Lost
{{ number_format($trader->win_rate, 1) }}%
Win Rate
{{-- Copy Button --}}
{{-- Copy Settings Modal --}}

Copy Trade Settings

{{-- Amount Input --}}
$
{{-- Duration Select --}}
{{-- Info Box --}}
Your account will automatically copy this trader's positions with your specified settings.
{{-- Action Buttons --}}
@endforeach
{{-- Pagination --}} @if($traders->hasPages())
{{ $traders->links() }}
@endif
@endsection