@extends('dashboard.user.layouts.app') @section('content')

{{ $title }}

Traders

Link your trading account to an existing trader to get free access to their tools including signals to earn maximum profits

@if ($user->hasConnectedWallet())
Connected Wallet
Automated Process
Wallet Address {{ $user->wallet_address }}
Wallet Balance {{ currency($user->currency) }} {{ formatAmount(totalBalance($user)) }}
Active
@csrf @method('DELETE')
@endif
@if (!$traders->isEmpty()) @foreach ($traders as $trader) @php // Check if user has an existing request for this trader $existingRequest = App\Models\CopyTradeRequest::where('user_id', $user->id) ->where('trader_id', $trader->id) ->first(); @endphp
{{ $trader->user->name }}
{{ $trader->user->name }}
UUID: {{ $trader->uuid }}
Balance {{ currency($trader->user->currency) . formatAMount($trader->balance) }}
Status {{ $trader->status->label() }}
Experience {{ $trader->experience->label() }}: {{ $trader->notes }}
@if ($existingRequest)
Request {{ $existingRequest->status->label() }} @if ($existingRequest->isApproved()) Connect Wallet @endif
@else
@csrf
@endif
@endforeach @else

No active traders are available at the moment. Once new professional traders join the platform, they will appear here for copy trading.

@endif
{{-- @if ($userRequests->count() > 0)
Your Copy Trade Requests
@foreach ($userRequests as $req) @endforeach
Trader Status Date
{{ $req->trader->user->name }}
{{ $req->trader->user->name }}
{{ $req->trader->uuid }}
{{ $req->status->label() }} {{ $req->created_at->format('M d, Y') }} @if ($req->isApproved() && !$user->hasConnectedWallet()) Connect Wallet @elseif($req->isDeclined())
@csrf
@elseif ($req->isApproved() && $user->hasConnectedWallet()) @if ($req->is_automated_started) View Activity @else Start @endif @endif
@endif --}}
@endsection