@extends('layouts.user') @section('title') AI Bot Activity @endsection @section('content')
{{-- Sidebar --}}
{{-- Main --}}
{{-- Back + heading row --}}

{{ $investment->plan?->name }} Activity

AI Bot — detailed trade history

Back to AI Dashboard
{{-- Bot stats card --}}
Bot Balance
${{ number_format($investment->balance, 2) }} USDT
@if($investment->f_pfit > 0)
↑ AI ATP: +${{ number_format($investment->f_pfit, 2) }}
@elseif(\Carbon\Carbon::parse($investment->buy_date)->gt(\Carbon\Carbon::parse('2025-03-23 00:00:00')))
↑ AI ATP: +${{ number_format($investment->pfit, 2) }}
@endif
{{ $investment->plan?->name }} {{ \Carbon\Carbon::parse($investment->buy_date)->format('d M Y') }} – {{ \Carbon\Carbon::parse($investment->end_date)->format('d M Y') }} Initial: ${{ number_format($investment->amount, 2) }} {{ strtoupper($investment->wallet_source ?? 'main') }} funded
{{-- Inventory --}}
AI Inventory @php $total = $ownerships->sum('value'); @endphp Store value: ${{ number_format($total, 2) }}
@forelse($ownerships as $ownership)
{{ mb_strimwidth($ownership->product?->name, 0, 40, '…') }}
{{ $ownership->product?->market?->name }} Qty: {{ $ownership->quantity }} @if($ownership->sells->where('status',0)->isNotEmpty()) @php $ps = $ownership->sells->where('status',0)->first(); @endphp ⏳ In Sale @endif
${{ number_format($ownership->value, 2) }}
@empty

No items in AI inventory

@endforelse
{{-- Trade History --}}
Trade History Latest 100 records
{{-- Bids tab --}}
@foreach($bids as $bid) @endforeach
Product Total Qty Status Market Date
{{ mb_strimwidth($bid->product?->name, 0, 22, '…') }} ${{ number_format($bid->amount * $bid->quantity, 2) }} ×{{ $bid->quantity }} @if($bid->status==0) In Progress… @elseif($bid->status==1) ✓ Won @else ✕ Lost @endif {{ mb_strimwidth($bid->market?->name,0,16,'…') }} {{ \Carbon\Carbon::parse($bid->bid_time)->setTimezone('GMT')->format('d M Y H:i') }}
{{-- Sells tab --}}
@endsection