@extends('layouts.user') @section('title') Fund AI Bot @endsection @section('content') @php $isGrant = $walletSource === 'grant'; $accentColor = $isGrant ? '#10b981' : '#f97316'; $accentDim = $isGrant ? 'rgba(16,185,129,0.09)' : 'rgba(249,115,22,0.09)'; $accentBorder = $isGrant ? 'rgba(16,185,129,0.22)' : 'rgba(249,115,22,0.22)'; $accentGlow = $isGrant ? 'rgba(16,185,129,0.25)' : 'rgba(249,115,22,0.25)'; @endphp
{{-- Sidebar --}}
{{-- Main --}}
Back to AI Dashboard {{-- Bot plan tile --}}
AI Bot Plan
{{ $investment->plan?->name }}
Capital: ${{ number_format($minFund, 2) }} – ${{ number_format($maxFund, 2) }} Purchased {{ $investment->created_at->format('d M Y') }} Funded via {{ $walletLabel }}
{{-- Wallet lock notice --}}
This bot was purchased using your {{ $walletLabel }}. You must fund it from the same wallet. Profits from this bot will also return to your {{ $walletLabel }}.
{{-- Fund form card --}}
Fund AI Bot Capital
One-time funding · range ${{ number_format($minFund, 2) }} – ${{ number_format($maxFund, 2) }}
{{-- Wallet balance display (read-only, shows locked source) --}}
@if($isGrant) @else @endif
{{ $walletLabel }} Locked to this bot
${{ number_format($walletBalance, 2) }}
Available balance · USDT
@if(!$canFundMin) {{-- Insufficient balance state --}}
Your {{ $walletLabel }} has ${{ number_format($walletBalance, 2) }}, which is below the minimum capital of ${{ number_format($minFund, 2) }} needed to fund this bot. @if($isGrant)

Your grant funds may have been used for trading. Contact support or wait for more grant activity. @else

Deposit more funds → @endif
@else {{-- Form --}}
You can only fund this bot once. Choose your amount carefully — it cannot be changed after funding.
{{-- Visual capital range bar --}}
Min: ${{ number_format($minFund, 2) }} $0.00 Max: ${{ number_format($maxFund, 2) }}
@csrf {{-- Hidden: pass the locked wallet source so the POST controller uses it --}}
USDT
Enter between ${{ number_format($minFund, 2) }} and ${{ number_format(min($maxFund, $walletBalance), 2) }}
@endif
@endsection