@extends('layouts.user') @section('contents')

My AI Bots

@forelse ($activations as $bot)

{{ $bot->bot->name }} @if ($bot->status == 'active') @else @endif

Activation Date {{ date('d-m-y H:i:s', strtotime($bot->created_at)) }}

Portfolio {{ formatAmount($bot->capital) }}

Portfolio Balance {{ formatAmount($bot->balance) }}

PNL @if ($bot->profit < 0) {{ ($bot->profit / $bot->capital) * 100 }}% @else +{{ ($bot->profit / $bot->capital) * 100 }}% @endif

@empty
You have not activated any bot
@endforelse
{{ $activations->links('paginations.simple') }}
@endsection @section('scripts') @foreach ($activations as $item) @endforeach {{-- view trading history chart --}} @endsection